Utility to test the value of the NODE_ENV system variable.

Usage

Add node-env-match as a project dependency

$ npm install node-env-match --save

Require and use it is really simple

var nodeEnvMatch = require ( ' node-env-match ' ) ; nodeEnvMatch ( " simple-test " ) nodeEnvMatch ( " test " ) nodeEnvMatch ( / simple-test / ) nodeEnvMatch ( / test / ) nodeEnvMatch ( [ ' test ' , / test / ] ) nodeEnvMatch ( [ ' test ' , / tost / ] )

You can see more examples in test/node-env-match file.

Test

$ npm test

License

MIT © Andrea Tarquini