node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

broccoli-env

broccoli-env

Get the environment (development or production) from the BROCCOLI_ENV environment variable.

Usage

var env = require('broccoli-env').getEnv();
console.log(env) // => 'development' or 'production'