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

command-line-args

Package Overview
Dependencies
Maintainers
1
Versions
75
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 4.0.5 to 4.0.6

2

lib/argv.js

@@ -21,3 +21,3 @@ 'use strict'

}
argv.forEach(arg => this.push(arg))
argv.forEach(arg => this.push(String(arg)))
}

@@ -24,0 +24,0 @@

{
"name": "command-line-args",
"version": "4.0.5",
"version": "4.0.6",
"description": "A mature, feature-complete library to parse command-line options.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/75lb/command-line-args.git",

@@ -49,1 +49,10 @@ 'use strict'

})
runner.test('bad-input: non-strings in argv', function () {
const definitions = [
{ name: 'one', type: Number }
]
const argv = [ '--one', 1 ]
const result = commandLineArgs(definitions, { argv })
a.deepStrictEqual(result, { one: 1 })
})
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