Node command line utility that processes input file with environment placeholders to output file with populated environment variables
$ npm install env-inject-file -g
Replace all environment placeholders in 'foo.yaml' to output 'bar.yaml'. Env variable is e.g.${SOME_ENV}
.
node env-inject-file --in foo.yml --out bar.yml
Use env-inject-file from JS program:
var envInjectFile = require('../env-inject-file');
envInjectFile({
in: "/fullyqualifiedpath/file.yml",
out: "/fullyqualifiedpath/out.yml",
});
MIT © Eisberg Labs