Socket
Socket
Sign inDemoInstall

commander

Package Overview
Dependencies
Maintainers
4
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commander - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1

7

History.md
2.8.1 / 2015-04-22
==================
* Back out `support multiline description` Close #396 #397
2.8.0 / 2015-04-07

@@ -3,0 +10,0 @@ ==================

26

index.js

@@ -914,3 +914,3 @@

.concat(this.options.map(function(option) {
return pad(option.flags, width) + ' ' + offset(option.description, width + 2);
return pad(option.flags, width) + ' ' + option.description;
}))

@@ -959,3 +959,3 @@ .join('\n');

, commands.map(function(cmd) {
return pad(cmd[0], width) + ' ' + offset(cmd[1], width + 2);
return pad(cmd[0], width) + ' ' + cmd[1];
}).join('\n').replace(/^/gm, ' ')

@@ -988,3 +988,3 @@ , ''

''
,' Usage: ' + cmdName + ' ' + offset(this.usage(), 9)
,' Usage: ' + cmdName + ' ' + this.usage()
, ''

@@ -1063,19 +1063,2 @@ ];

/**
* Prepend to each line of `str` spaced string of `offset` length.
*
* @param {String} str
* @param {Number} offset
* @param {Boolean} skipFirstLine
* @return {String}
* @api private
*/
function offset(str, offset, skipFirstLine) {
var res = String(str || '').replace(/^/gm, pad('', offset));
if (!skipFirstLine) {
res = res.replace(/^\s+/, '');
}
return res;
}
/**
* Output help information if necessary

@@ -1094,5 +1077,2 @@ *

process.exit(0);
// used for test flow only
options.splice(i, 1);
}

@@ -1099,0 +1079,0 @@ }

{
"name": "commander",
"version": "2.8.0",
"version": "2.8.1",
"description": "the complete solution for node.js command-line programs",

@@ -18,3 +18,3 @@ "keywords": [

"should": ">= 0.0.1",
"sinon": ">= 1.13.0"
"sinon": ">= 1.14.1"
},

@@ -21,0 +21,0 @@ "scripts": {

@@ -203,4 +203,3 @@ # Commander.js

-b, --bbq Add bbq sauce
-c, --cheese <type> Add the specified type
of cheese [marble]
-c, --cheese <type> Add the specified type of cheese [marble]
-C, --no-cheese You do not want any cheese

@@ -207,0 +206,0 @@

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