Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
NODE_ENV with fallback
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
History.md
Makefile
Readme.md
index.js
package.json

Readme.md

node-env-fallback

Build Status

NODE_ENV with fallback.

Installation

npm:

$ npm install node-env-fallback

Usage

var env = require('node-env-fallback');
console.log(env);

Without NODE_ENV:

$ node env.js
development

With NODE_ENV:

$ NODE_ENV=production node env.js
production

License

The MIT License

Copyright © 2013 Seiya Konno <nulltask@gmail.com>

Something went wrong with that request. Please try again.