Corrall your environment variables, but only a little bit
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json
test.js

README.md

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'
  }
]);