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

minimist

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimist - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

index.js

@@ -108,4 +108,6 @@ module.exports = function (args, opts) {

if (!broken && key !== '-') {
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
if (args[i+1] === '--') {
setArg(key, true);
}
else if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
&& !flags.bools[key]

@@ -112,0 +114,0 @@ && (aliases[key] ? !flags.bools[aliases[key]] : true)) {

{
"name": "minimist",
"version": "0.0.2",
"version": "0.0.3",
"description": "parse argument options",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,1 +18,8 @@ var parse = require('../');

});
test('-a -- b', function (t) {
t.plan(3);
t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
});
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