Socket
Socket
Sign inDemoInstall

argsparser

Package Overview
Dependencies
0
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

2

lib/argsparser.js

@@ -17,3 +17,3 @@ /**

// its a switch
if (/^-|--/.test(arg)) {
if (/^(-|--)/.test(arg)) {
opts[arg] = true;

@@ -20,0 +20,0 @@ curSwitch = arg;

{
"name": "argsparser",
"description": "A tiny command line arguments parser",
"version": "0.0.3",
"version": "0.0.4",
"author": "Oleg Slobodskoi <oleg008@gmail.com>",

@@ -21,2 +21,2 @@ "repository": {

]
}
}

@@ -17,2 +17,4 @@ var a = require('assert'),

a.deepEqual(parse(['--token', 'bla--bla']), {'--token': 'bla--bla'}, 'node script.js --token bla--bla');
a.deepEqual(parse(['-o', '123.456']), {'-o': 123.456}, 'node script.js -o 123.456');

@@ -36,3 +38,2 @@

util.print('All tests ok\n');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc