Socket
Socket
Sign inDemoInstall

yargs

Package Overview
Dependencies
1
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.2.0

test/parse_camelCase.js

4

example/demand_count.js
#!/usr/bin/env node
var argv = require('optimist')
.demandCount(2)
.demand(2)
.argv;
console.dir(argv)
console.dir(argv)

@@ -32,2 +32,11 @@ var path = require('path');

aliases[key] = [].concat(opts.alias[key]);
// For "--option-name", also set argv.optionName
aliases[key].concat(key).forEach(function (x) {
if (/-/.test(x)) {
aliases[key].push(
x.split('-').map(function(word, i) {
return (i ? word[0].toUpperCase() + word.slice(1) : word);
}).join(''));
}
});
aliases[key].forEach(function (x) {

@@ -34,0 +43,0 @@ aliases[x] = [key].concat(aliases[key].filter(function (y) {

{
"name": "yargs",
"version": "1.1.3",
"version": "1.2.0",
"description": "Light-weight option parsing with an argv hash. No optstrings attached.",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc