npm.io
3.0.0 • Published 4 years ago

is-heroku

Licence
MIT
Version
3.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
19

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

Keywords