Skip to content
/ menta Public

JavaScript module to check which environment you are in

License

Notifications You must be signed in to change notification settings

frodsan/menta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

JavaScript module to check which environment you are in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published