Inject env.json
into process.env
.
$ npm install --save gist:333c4fac79f302d411365927ca06d328
const { NODE_ENV = 'development' } = require('@flesch/env-json')();
const { NODE_ENV = 'development' } = require('@flesch/env-json')('./development.env.json');
console.log(NODE_ENV);
console.log(process.env);