Convert json to key-value environment pairs
Note, this is my own fork to match our .env
file formats. Find the original at ralucas/json-to-env.
$ npm install --save json-to-env
Or run it from this directory:
$ node index.js <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:
TEST1=a test
TEST_THE_TEST=another test
NESTED_TEST3=hello
NESTED_A_NEW_ONE=goodbye
Unlicense © R.A. Lucas