Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

required_env

1.0.1 • Public • Published

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

Install

npm i required_env

DownloadsWeekly Downloads

1,325

Version

1.0.1

License

ISC

Last publish

Collaborators

  • avatar