node-env

Just require the NODE_ENV environmental variable

MIT License

Downloads
3.9K
Stars
5
Committers
2

node-env

Just require the NODE_ENV environmental variable

Example

var NODE_ENV = require("node-env")

if (NODE_ENV === "production") {
    /* serious time */
} else if (NODE_ENV === "development") {
    /* fs.watch the entire disk!! */
}

Installation

npm install node-env

Contributors

  • Raynos

MIT Licenced

Package Rankings
Top 5.7% on Npmjs.org