0.0.5 • Published 8 years ago
is-heroku
Checks if it's running on a Heroku instance by asserting process.env.DYNO
Installation
npm install @panstav/is-heroku
Usage
const isHeroku = require('@panstav/is-heroku');
// not on heroku
console.log(isHeroku());
// -> false
// on Heroku
console.log(isHeroku());
// -> true