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 1.0.0 to 1.0.1

6

History.md
1.0.1 / 2012-08-03
==================
* fix issue #56
* fix tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode())
1.0.0 / 2012-07-05

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

7

lib/commander.js

@@ -216,2 +216,5 @@ /*!

// Leftover arguments need to be pushed back. Fixes issue #56
if (parsed.args.length) args = parsed.args.concat(args);
self.args.forEach(function(arg, i){

@@ -872,3 +875,3 @@ if (arg.required && null == args[i]) {

process.stdin.resume();
tty.setRawMode(true);
process.stdin.setRawMode(true);
process.stdout.write(str);

@@ -881,3 +884,3 @@

process.stdin.removeAllListeners('keypress');
tty.setRawMode(false);
process.stdin.setRawMode(false);
if (!buf.trim().length) return self.password(str, mask, fn);

@@ -884,0 +887,0 @@ fn(buf);

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

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

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