JSPM

is-heroku

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 549
  • Score
    100M100P100Q87074F
  • License MIT

Check if your code is running on Heroku

Package Exports

  • is-heroku

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-heroku) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-heroku Build Status

Check if your code is running on Heroku

Install

$ npm install --save is-heroku

Usage

var 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