Socket
Socket
Sign inDemoInstall

heroku.node

Package Overview
Dependencies
49
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku.node

Heroku API client


Version published
Maintainers
1
Weekly downloads
759
increased by18.97%

Weekly downloads

Readme

Source

heroku.node

Heroku API client for node.js

Installation

npm install heroku.node

Usage

var Heroku = require('heroku.node');

var client = new Heroku({email: '...', api_key: '...'});
// Do something with client

client.apps.list(function(err, apps) {
  console.log(apps);
});

// You can also use any method as a promise
client.apps.list().then(function(apps) {
  console.log(apps);
});

Constructors

new Heroku({email: '...', api_key: '...'})

Methods

Apps API

client.apps.list(callback)
client.app('app-name').get(callback)
client.app('app-name').maintenance_mode_on(callback)
client.app('app-name').maintenance_mode_off(callback)
client.app('app-name').destroy(callback)

Dynos API

client.app('app-name').dynos.list(callback)
client.app('app-name').dynos.restart(callback)
client.app('app-name').processes.stop_type('process-type', callback)
client.app('app-name').processes.scale('process-type', quantity, callback)
client.app('app-name').dyno('dyno-id').get(callback)
client.app('app-name').dyno('dyno-id').restart(callback)
client.app('app-name').dyno('dyno-id').stop(callback)

License

Copyright (c) 2013 Matt Insler
Licensed under the MIT license.

FAQs

Last updated on 16 May 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc