Socket
Socket
Sign inDemoInstall

command-line-args

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

command-line-args - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

7

dist/index.js

@@ -214,3 +214,4 @@ 'use strict';

argv = process.argv.slice(0);
argv.splice(0, 2);
const deleteCount = process.execArgv.some(isExecArg) ? 1 : 2;
argv.splice(0, deleteCount);
}

@@ -334,2 +335,6 @@ argv.forEach(arg => this.push(String(arg)));

function isExecArg (arg) {
return ['--eval', '-e'].indexOf(arg) > -1 || arg.startsWith('--eval=')
}
/**

@@ -336,0 +341,0 @@ * For type-checking Javascript values.

9

package.json
{
"name": "command-line-args",
"version": "5.1.0",
"version": "5.1.1",
"description": "A mature, feature-complete library to parse command-line options.",
"repository": "https://github.com/75lb/command-line-args.git",
"scripts": {
"test": "rollup test/tests.mjs -f cjs -o dist/tests.js && node dist/tests.js",
"test": "npm run test:js && npm run test:mjs",
"test:js": "rollup test/tests.mjs -f cjs -e 'test-runner,assert,lodash.camelcase' -o dist/tests.js && node dist/tests.js",
"test:mjs": "node --experimental-modules test/tests.mjs",

@@ -12,3 +13,3 @@ "travis-test": "node dist/tests.js",

"cover": "nyc --reporter=text-lcov test-runner test/*.js test/internals/*.js | coveralls",
"dist": "rollup index.mjs -f cjs -o dist/index.js && rollup index.mjs -f esm -o dist/index.mjs"
"dist": "rollup index.mjs -f cjs -e 'lodash.camelcase' -o dist/index.js && rollup index.mjs -f esm -e 'lodash.camelcase' -o dist/index.mjs"
},

@@ -43,3 +44,3 @@ "main": "dist/index.js",

"jsdoc-to-markdown": "^4.0.1",
"rollup": "^1.7.0",
"rollup": "^1.7.4",
"test-runner": "^0.5.1"

@@ -46,0 +47,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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