in-production
Two simple variants of NODE_ENV === production. Exports a boolean or a function, which turns into a noop when browserified. Best combined with uglifyify as a transform to remove dead code.
example
As a boolean, using a cached process.env.NODE_ENV
var inProduction = if inProduction //..
As a function, using an uncached process.env.NODE_ENV
var inProduction = if // ..
install
With npm do:
npm install in-production