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

posix-getopt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posix-getopt - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

lib/getopt.js

@@ -91,5 +91,6 @@ /*

if (!/^[\w\d]$/.test(chr))
if (!/^[\w\d\u1000-\u1100]$/.test(chr))
throw (goError('invalid optstring: only alphanumeric ' +
'characters may be used as options: ' + chr));
'characters and unicode characters between ' +
'\\u1000-\\u1100 may be used as options: ' + chr));

@@ -96,0 +97,0 @@ if (ii + 1 < optstr.length && optstr[ii + 1] == ':') {

19

package.json
{
"name": "posix-getopt",
"version": "1.0.0",
"description": "POSIX-style getopt()",
"author": "Dave Pacheco (dap@cs.brown.edu)",
"engines": { "node": "*" },
"main": "./lib/getopt"
"name": "posix-getopt",
"version": "1.1.0",
"description": "POSIX-style getopt()",
"author": "Dave Pacheco (dap@cs.brown.edu)",
"engines": {
"node": "*"
},
"main": "./lib/getopt",
"repository": {
"type": "git",
"url": "git://github.com/davepacheco/node-getopt.git"
},
"license": "MIT"
}

@@ -53,3 +53,21 @@ /*

result: []
} ];
}, {
optstr: '\u1000(help)\u1001(version)',
argv: ['cmd', 'script', '--help' ],
result: [
{ option: '\u1000' },
]
}, {
optstr: '\u1000(help)\u1001(version)',
argv: ['cmd', 'script', '--version' ],
result: [
{ option: '\u1001' },
]
}, {
optstr: '\u1000:(parallel)',
argv: ['cmd', 'script', '--parallel=100' ],
result: [
{ option: '\u1000', optarg: 100 },
]
}];

@@ -56,0 +74,0 @@ var parser, ii, arg, result;

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