sindresorhus / is-heroku

Check if your code is running on Heroku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Check if your code is running on Heroku

License:MIT License


Languages

Language:JavaScript 100.0%