Socket
Book a DemoInstallSign in
Socket

app-cloner-heroku

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-cloner-heroku

A node module for deploying app.json apps to Heroku. Designed to work on the server, the browser, and the command line.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

app-cloner-heroku

A node module for deploying app.json apps to Heroku. Designed to work on the server, the browser, and the command line.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install app-cloner-heroku --save

Usage

var cloner = require("app-cloner-heroku").new({
  repo: "zeke/slideshow#master",
  token: process.env.HEROKU_OAUTH_SECRET,
  app: "my-new-slideshow"
})

cloner.on("create", function(build){
  console.log(build)
})

cloner.on("pending", function(){
  console.log(".")
})

cloner.on("succeeded", function(build){
  console.log(build)
})

cloner.on("error", function(error){
  console.error(error)
})

cloner.start()

Tests

npm install
npm test

Dependencies

  • dotenv: Loads environment variables from .env
  • flatten: Flatten arbitrarily nested arrays into a non-nested list of non-array items
  • github-url-to-object: Extract user, repo, and other interesting properties from GitHub URLs
  • heroku-auth-finder: Derive a Heroku API key from process.env or ~/.netrc
  • heroku-client: A wrapper for the Heroku v3 API
  • ini: An ini encoder/decoder for node
  • is-url: Check whether a string is a URL.
  • redact-url: Redact or remove authentication data from URLs
  • superagent: elegant & feature rich browser / node HTTP with a fluent API

Dev Dependencies

  • mocha: simple, flexible, fun test framework

License

MIT

Colophon

Keywords

app.json

FAQs

Package last updated on 31 May 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