Skip to content

Node command line utility that processes input file with environment placeholders to output file with populated environment variables

License

Notifications You must be signed in to change notification settings

eisberg-labs/env-inject-file

Repository files navigation

env-inject-file NPM version Build Status Dependency Status

Node command line utility that processes input file with environment placeholders to output file with populated environment variables

Installation

$ npm install env-inject-file -g

Usage

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

Programmatic Usage

Use env-inject-file from JS program:

var envInjectFile = require('../env-inject-file');

envInjectFile({
  in: "/fullyqualifiedpath/file.yml",
  out: "/fullyqualifiedpath/out.yml",
});

License

MIT © Eisberg Labs

About

Node command line utility that processes input file with environment placeholders to output file with populated environment variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published