This package has been deprecated

Author message:

Please use heroku-prebuild and heroku-postbuild instead. https://devcenter.heroku.com/articles/nodejs-support#heroku-specific-build-steps

is-heroku-cli

1.2.1 • Public • Published

is-heroku-cli

Check if your code is running on Heroku from the command line

npm Build Status Dependency Status devDependency Status

Intro

Just a CLI over is-heroku.

CLI usage

is-heroku-cli

Returns an exit code of 1 if not running on Heroku.

Example

You might want to do stuff like a post-install script on Heroku. You can do this in your package.json:

{
  "scripts": {
    "postinstall": "is-heroku-cli && do-some-stuff || exit 0"
  }
}

The || exit 0 part is to signal other scripts that you don't really mind if the preceding part fails (e.g. if is-heroku-cli exits with code 1).

License

MIT

Package Sidebar

Install

npm i is-heroku-cli

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • seangenabe