Skip to content

prescottprue/devshare

Repository files navigation

devshare

NPM version NPM downloads Build Status Dependency Status Code Climate Code Coverage License Code Style

Gitter

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

  1. Install: npm install --save devshare

  2. 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) }) ```