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

cli-argument-parser

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-argument-parser - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

11

lib/index.js

@@ -20,4 +20,11 @@ "use strict";

if (syncArgv) {
for (const argName in parsedContens) {
process.argv.push(`--${argName}=${parsedContens[argName]}`);
for (const [key, value] of Object.entries(parsedContens)) {
const argvItemValue = `--${key}=${value}`;
const index = process.argv.findIndex(argItem => argItem === argvItemValue);
if (index >= 0) {
process.argv[index] = argvItemValue;
}
else {
process.argv.push(argvItemValue);
}
}

@@ -24,0 +31,0 @@ }

2

package.json
{
"name": "cli-argument-parser",
"version": "0.5.3",
"version": "0.5.4",
"description": "A package containing relevant CLI actions",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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