node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

broccoli-env

Get the environment (production, development) from BROCCOLI_ENV

broccoli-env

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

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