Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 319 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 319 Bytes

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