eisberg-labs / env-inject-file

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%