Reference Source

Scalingo.js

Build Status Documentation

The Scalingo.js library provides convenient access to the Scalingo API.

Usage

The package needs to be configured with your a token which are available in your Scalingo Dashboard.

const scalingo = require('scalingo')

scalingo.clientFromToken("tk-us-...").then(function(client) {
  return client.Users.self()
}).then(function(user) {
  console.log(user)
})

Or using ES modules, this looks more like:

import Scalingo from 'scalingo'

let client = await Scalingo.clientFromToken("tk-us-...")
let user = await client.Users.self()
console.log(user)

Development

Release a new version

# If it's a patch (see https://docs.npmjs.com/cli/version.html)
npm version patch
git push --tags
git push origin/master