jvb-env
v0.0.2
Published
Load vars onto process.env from a json file
Downloads
6
Readme
jvb-env
add env vars to process.env from .json file
usage:
const loadConfig = require('jvb-env');
console.log(process.env.MY_VAR); // undefined
loadConfig('/relative/path/to/env.json');
console.log(process.env.MY_VAR); // 'my-value'