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 3.0.3-0 to 3.0.3

2

package.json
{
"name": "command-line-args",
"version": "3.0.3-0",
"version": "3.0.3",
"description": "A library to parse command-line options.",

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

@@ -44,7 +44,12 @@ 'use strict'

var argv = [ '--url=my-url?q=123', '--two', '2', '--three=3' ]
var result = cliArgs(optionDefinitions, argv)
var result = cliArgs(optionDefinitions, [ '--url=my-url?q=123', '--two', '2', '--three=3' ])
a.strictEqual(result.url, 'my-url?q=123')
a.strictEqual(result.two, '2')
a.strictEqual(result.three, '3')
result = cliArgs(optionDefinitions, [ '--url=my-url?q=123=1' ])
a.strictEqual(result.url, 'my-url?q=123=1')
result = cliArgs({ name: 'my-url' }, [ '--my-url=my-url?q=123=1' ])
a.strictEqual(result['my-url'], 'my-url?q=123=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