Socket
Socket
Sign inDemoInstall

json2bash

Package Overview
Dependencies
2
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

13

json2bash.js

@@ -110,2 +110,8 @@ #!/usr/bin/env node

})
.option('exportprefix', {
alias: ['x','export'],
default: false,
type: 'boolean',
description: 'output with export before'
})
.option('jsonx', {

@@ -145,3 +151,3 @@ alias: ['j','jx'],

var { var2Lower, prefix, onlyselected, fileout, debug, verbose,all,jsonx } = argv;
var { var2Lower, prefix, onlyselected, fileout, debug, verbose,all,jsonx,exportprefix } = argv;
var d = debug;

@@ -262,4 +268,7 @@

var exportprefixVal = "";
if (exportprefix) exportprefixVal = "export ";
if (!onlyselected)
out[c] = "export " + outKey + "=\"" + value.trim() + "\"";
out[c] = exportprefixVal + outKey + "=\"" + value.trim() + "\"";
}

@@ -266,0 +275,0 @@ else {

2

package.json
{
"name": "json2bash",
"version": "0.2.0",
"version": "0.2.1",
"description": "A CLI to export json object to bash env",

@@ -5,0 +5,0 @@ "main": "json2bash.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc