required_env
v1.0.1
Published
Corrall your environment variables, but only a little bit. Don't fence me in.
Downloads
939
Readme
This is a way to ensure any required environment variables are set. You can also specify defaults.
Installation:
npm install required_env
Example:
var required = require('required_env');
required([
'SOMETHING_SECRET',
{
var: 'DATABASE_LOCATION',
default: 'LOCALHOST'
}
]);