Socket
Book a DemoInstallSign in
Socket

is-heroku

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-heroku

Check if your code is running on Heroku

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
977
118.57%
Maintainers
1
Weekly downloads
 
Created
Source

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

heroku

FAQs

Package last updated on 23 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts