1.0.0 • Published 9 years ago

menta v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

menta

Check which environment you are in. Inspired by ment.

Description

Menta defines the value of the current environment by:

  1. Reads ENVIRONMENT environment variable.
  2. If not found, reads NODE_ENV environment variable.
  3. 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