Skip to content

Determine whether Node is running in development mode

Notifications You must be signed in to change notification settings

grug/is-development-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-development-mode

Determine whether Node is running in development mode.

🤯 Mind blowing stuff 🤯

Motivation

Everyone else has a silly one-liner in NPM with 8,000,000,000 downloads a week that eventually ends up getting compromised and a security exploit infects the entire internet - so I figured why not me too ¯\_(ツ)_/¯

Installation

NPM: npm install is-development-mode

Yarn: yarn add is-development-mode

Usage

import { isDevelopmentMode } from 'is-development-mode';

if (isDevelopmentMode()) {
  console.log('We are in development mode 👍');
}