Client library to simplify communication with the devShare service
- File system interaction
- Projects management
- Users management
- Cloud interface
devShare is universal, so it can be used client-side or server-side.
-
Install:
npm install --save devshare
-
Include and use
devshare
:
```javascript
import devshare from 'devshare' devshare.login(auth) .then(user => console.log('Successful login', user)) .catch(error => console.error('Error logging in', error))
```
```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) }) ```