is-heroku
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

is-heroku

Check if your code is running on Heroku

Install

npm install is-heroku

Usage

import isHeroku from '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

Package Sidebar

Install

npm i is-heroku

Weekly Downloads

1,397

Version

3.0.0

License

MIT

Unpacked Size

2.76 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus