envstrict
schema like definitions for environment variables, throws an exception when missing required variables. Has a few helper methods exposed for filtering, merging an objects keys, and a few other things.
Usage
const envstrict = ;const envs = ;
API
.add
, .and
, .get
- Aliased method to add after initial object creation.
const envstrict = ; const envs = ; envs;
Tests
$ npm test > envstrict@1.2.5 test /home/higgamuffin/code/envstrict> mocha test/ -R spec Tests