Socket
Socket
Sign inDemoInstall

nopt

Package Overview
Dependencies
Maintainers
0
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 1.0.3 to 1.0.4

4

examples/my-program.js

@@ -20,3 +20,5 @@ #!/usr/bin/env node

, "p" : ["--pick"]
, "f" : ["--flag"]
, "f" : ["--flag", "true"]
, "g" : ["--flag"]
, "s" : "--flag"
}

@@ -23,0 +25,0 @@ // everything is optional.

@@ -229,3 +229,3 @@ // info about each config option.

arg = arg.replace(/^-+/, '')
if (abbrevs[arg]) {
if (abbrevs[arg] && !shorthands[arg]) {
return null

@@ -232,0 +232,0 @@ }

{ "name" : "nopt"
, "version" : "1.0.3"
, "version" : "1.0.4"
, "description" : "Option parsing for Node, supporting types, shorthands, etc. Used by npm."

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

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