devshare
![Code Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)
![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)
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)
})
```