is-development-mode
v1.0.7
Published
Determine whether Node is running in development mode
Downloads
7
Readme
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 --save-dev is-development-mode
Yarn: yarn add --dev is-development-mode
Usage
import { isDevelopmentMode } from 'is-development-mode';
if (isDevelopmentMode()) {
console.log('We are in development mode 👍');
}