Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

env-global

vesln5MIT1.0.0

Exposes DEV, PROD, and TEST global variables based on process.NODE_ENV

readme

Synopsis

A simple node module that exposes the following global variables based on the current node env:

__DEV__ // if the env is development
__PROD__ // if the env is production
__TEST__ // if the env is test

Usage

require('env-global')()

Installation

$ npm install env-global

License

MIT