New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

heroku-legacy

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-legacy

Heroku legacy API client for NodeJS

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

node-heroku-api

Port of heroku-api gem to NodeJS.

Installation

$ npm install heroku-legacy

Usage

The API is exactly the same, with the following differences:

  • All the methods take a callback of the following form: function (err, body) where err is one of the error defined in src/errors.coffee if any, or null otherwise and body is the JSON response.
  • All the methods are camelCased.
  • When using the username/password constructor, the object should be used in the callback, and not as the return value.

Here is a short example (in CoffeeScript).

With username/password:

HerokuApi = require 'heroku-legacy'
new HerokuApi username: 'test@foo.jp', password: 'password', (err, api) ->
  return handleError(err) unless err == null
  api.getApps (err, apps) ->
    return handleError unless err == null
    console.log apps

With API key:

HerokuApi = require 'heroku-legacy'
api = new HerokuApi apiKey: 'my-api-key'
api.getApps (err, apps) ->
  return handleError(err) unless err == null
  console.log apps

Keywords

FAQs

Package last updated on 23 Aug 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc