convert-json-env
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "convert-json-env", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A CLI tool for converting JSON to env file.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,5 +32,22 @@ # convert-json-env | ||
} | ||
``` | ||
$ convert-json-env example-firebaseConfig.json --out=.env.local --prefix=VUE_APP_ | ||
```sh | ||
$convert-json-env example-firebaseConfig.json --prefix="export " | ||
✅ example-firebaseConfig.env created. | ||
$ cat example-firebaseConfig.env | ||
export apiKey='abcdefghijklmnopqrstuvwxyz1234567890ABC' | ||
export authDomain='myapp-1234a.firebaseapp.com' | ||
export databaseURL='https://myapp-1234a.firebaseio.com' | ||
export projectId='myapp-1234a' | ||
export storageBucket='myapp-1234a.appspot.com' | ||
export messagingSenderId='123456789012' | ||
export appId='1:234567890124:web:1234567890abcdef' | ||
``` | ||
```sh | ||
$convert-json-env example-firebaseConfig.json --out=.local.env --prefix=VUE_APP_ | ||
✅ .local.env created. | ||
$ cat .env.local | ||
@@ -37,0 +54,0 @@ VUE_APP_apiKey='abcdefghijklmnopqrstuvwxyz1234567890ABC' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5546
75