Skip to content

ralucas/json-to-env

Repository files navigation

json-to-env NPM version Build Status Dependency Status

Convert json to key-value environment pairs

Install

$ npm install --save json-to-env

or

$ npm install -g json-to-env

Usage

$ json-to-env <inputfile.json> <outputfile.config> <options>

How it works

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"

License

Unlicense © R.A. Lucas

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published