devshare
v0.4.0-alpha
Published
Library to communicate with devshare development sharing platform.
Downloads
108
Maintainers
Readme
devshare
Client library to simplify communication with the devShare service
Features
- File system interaction
- Projects management
- Users management
- Cloud interface
Getting Started
devShare is universal, so it can be used client-side or server-side.
NPM
Install:
npm install --save devshare
Include and use
devshare
:
ES6
```javascript
import devshare from 'devshare' devshare.login(auth) .then(user => console.log('Successful login', user)) .catch(error => console.error('Error logging in', error))
```
ES5
```javascript
var devshare = require('devshare') devshare.login(auth) .then(function (user) { console.log('Successful login', user) }) .catch(function (error) { console.error('Error logging in', error) }) ```