Socket
Socket
Sign inDemoInstall

nopt

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nopt - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

2

package.json
{
"name": "nopt",
"version": "3.0.3",
"version": "3.0.4",
"description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",

@@ -5,0 +5,0 @@ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",

@@ -32,3 +32,4 @@ If you want to write an option parser, and have it be good, there are

, "pick" : Boolean
, "many" : [String, Array]
, "many1" : [String, Array]
, "many2" : [path]
}

@@ -82,7 +83,7 @@ , shortHands = { "foofoo" : ["--foo", "Mr. Foo"]

$ node my-program.js --many 1 --many null --many foo
{ many: ["1", "null", "foo"] }
$ node my-program.js --many1 5 --many1 null --many1 foo
{ many1: ["5", "null", "foo"] }
$ node my-program.js --many foo
{ many: ["foo"] }
$ node my-program.js --many2 foo --many2 bar
{ many2: ["/path/to/foo", "path/to/bar"] }
```

@@ -143,4 +144,4 @@

By default, nopt outputs a warning to standard error when invalid
options are found. You can change this behavior by assigning a method
By default, nopt outputs a warning to standard error when invalid values for
known options are found. You can change this behavior by assigning a method
to `nopt.invalidHandler`. This method will be called with

@@ -147,0 +148,0 @@ the offending `nopt.invalidHandler(key, val, types)`.

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