json-to-env

0.0.10 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i json-to-env

Weekly Downloads

255

Version

0.0.10

License

Unlicense

Unpacked Size

8.07 kB

Total Files

5

Last publish

Collaborators

  • ralucas