You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP →

cli-argparse

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-argparse - npm Package Compare versions

Comparing version

to
0.1.1

var short = '-', long = '--';
var sre = /^-[^-]+/, lre = /^--[^-]+/, negate = /^--no-/;
var camelcase = require('cli-util').camelcase;
function camelcase(flag) {
return flag.split('-').reduce(function(str, word){
return str + word[0].toUpperCase() + word.slice(1);
});
}
function toOptionKey(arg, negated, opts) {

@@ -11,0 +6,0 @@ var result = alias(arg, opts), key;

{
"name": "cli-argparse",
"version": "0.1.0",
"version": "0.1.1",
"description": "Lightweight argument parser",

@@ -24,2 +24,5 @@ "author": "muji <noop@xpm.io>",

],
"dependencies": {
"cli-util": "~1.0.0"
},
"devDependencies": {

@@ -26,0 +29,0 @@ "mocha": "~1.17.0",