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- Using npm
$ npm i -D convert-json-to-env- Using yarn
$ yarn add -D convert-json-to-env$ 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.