Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

is-heroku

2.0.0 • Public • Published

is-heroku Build Status

Check if your code is running on Heroku

Install

$ npm install is-heroku

Usage

const isHeroku = require('is-heroku');
 
// On your local computer
console.log(isHeroku);
//=> false
 
// On Heroku
console.log(isHeroku);
//=> true

Add an environment variable first to improve the detection:

$ heroku config:set HEROKU=1

License

MIT © Sindre Sorhus

install

npm i is-heroku

Downloadsweekly downloads

403

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar