Skip to content

parthpanchal123/Json-to-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published