1.0.0 • Published 9 years ago
menta v1.0.0
menta
Check which environment you are in. Inspired by ment.
Description
Menta defines the value of the current environment by:
- Reads
ENVIRONMENT
environment variable. - If not found, reads
NODE_ENV
environment variable. - If not found, uses
"development"
by default.
Usage
var Menta = require("menta");
Menta.getEnvironment()
# => "development"
Menta.isDevelopment() # => true
Menta.isTest() # => false
Menta.isStaging() # => false
Menta.isProduction() # => false
Installation
$ npm install menta --save
1.0.0
9 years ago