1.0.3 • Published 3 years ago

convert-json-to-env v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

convert-json-to-env

Convert any json config file (Firebase config ,GCP config ...) from this :

{
    "key": "asjdalyih4357jdhakshdakhsdas",
    "secret": "dasd7453hkjoiurtoiurretour",
    "region": "Asia"
}

to this .env file

key=asjdalyih4357jdhakshdakhsdas
secret=dasd7453hkjoiurtoiurretour
region=Asia

Installation

  • Using npm
$ npm i -D convert-json-to-env
  • Using yarn
$ yarn add -D convert-json-to-env

Usage

$ npx convert-json-to-env <file_name.json>

Navigate to the directory which consists of your JSON File and execute the above npx command and .env file will be created in the same directory.

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago