Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convert-json-env

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-json-env - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc