@zaneray/node-env
v2.0.1
Published
functions for interacting with the node 'environment'
Downloads
205
Maintainers
Keywords
Readme
ZaneRay Node Env
- fast-fail wrapper for environment variables
- uses Assertions internally, throws AssertionError if no valid value defined
Usage
const { get } = require('@zaneray/node-env');
//let environmentVariableValue = get(environmentVariableName);
let REQUIRED_VAR = get('REQUIRED_VAR');
let OPTIONAL_VAR = get('OPTIONAL_VAR','optional value to set');