Convert json to key-value environment pairs
$ npm install --save json-to-env
or
$ npm install -g json-to-env
$ json-to-env <inputfile.json> <outputfile.config> <options>
Given an json input file it will output a text file of your naming, e.g.
input example:
{
"test1": "a test",
"testTheTest": "another test",
"nested": {
"test3": "hello",
"a_new_one": "goodbye"
}
output:
export TEST1="a test"
export TEST_THE_TEST="another test"
export NESTED_TEST3="hello"
export NESTED_A_NEW_ONE="goodbye"
Unlicense © R.A. Lucas