API
devshare's api is meant make accessing the devshare platform as easy as possible all environments. The examples contained within the API documentation are written using ES6 imports, devshare can be accessed using the window.Devshare object.
Example
ES6
import { user } from 'devshare' // Import only user
user().get()
//Equivalent to
import Devshare from 'devshare' // Import whole library
Devshare.user('test').get()
ES5
var Devshare = require('devshare') // Import whole library
Devshare.user('test').get()
Browser
// Script in index.html
<script src="http://cdn.kyper.io/js/devshare/latest/devshare.js"></script>
and
// Window object available within javascript
var usersUtil = window.Devshare.users('test).get()