1.0.3 • Published 5 years ago
convert-json-to-env v1.0.3
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=AsiaInstallation
- Using npm
$ npm i -D convert-json-to-env- Using yarn
$ yarn add -D convert-json-to-envUsage
$ 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.