Socket
Socket
Sign inDemoInstall

commander

Package Overview
Dependencies
Maintainers
1
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 0.4.1 to 0.4.2

.travis.yml

6

History.md
0.4.2 / 2011-11-24
==================
* Added travis support
* Fixed: line-buffered input automatically trimmed. Closes #31
0.4.1 / 2011-11-18

@@ -3,0 +9,0 @@ ==================

5

lib/commander.js

@@ -673,5 +673,6 @@

Command.prototype.promptForDate = function(str, fn){
var self = this;
this.promptSingleLine(str, function(val){
val = new Date(val);
if (isNaN(val.getTime())) return program.promptForDate(str + '(must be a date) ', fn);
if (isNaN(val.getTime())) return self.promptForDate(str + '(must be a date) ', fn);
fn(val);

@@ -697,3 +698,3 @@ });

process.stdin.once('data', function(val){
fn(val);
fn(val.trim());
}).resume();

@@ -700,0 +701,0 @@ };

3

package.json
{
"name": "commander"
, "version": "0.4.1"
, "version": "0.4.2"
, "description": "the complete solution for node.js command-line programs"

@@ -10,4 +10,5 @@ , "keywords": ["command", "option", "parser", "prompt", "stdin"]

, "devDependencies": { "should": ">= 0.0.1" }
, "scripts": { "test": "make test" }
, "main": "index"
, "engines": { "node": ">= 0.4.x < 0.7.0" }
}

@@ -6,2 +6,4 @@

[![Build Status](https://secure.travis-ci.org/visionmedia/commander.js.png)](http://travis-ci.org/visionmedia/commander.js)
## Installation

@@ -8,0 +10,0 @@

Sorry, the diff of this file is not supported yet

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