Socket
Socket
Sign inDemoInstall

progress

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

progress - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

8

History.md
1.0.0 / 2013-06-18
==================
* remove .version
* >=. Closes #19
* Merge pull request #15 from davglass/readline-osx
* On OSX revert back to terminal hack to avoid a readline bug
0.1.0 / 2012-09-19

@@ -3,0 +11,0 @@ ==================

19

lib/node-progress.js

@@ -14,8 +14,2 @@ /*!

/**
* Library version.
*/
exports.version = '0.1.0';
/**
* Initialize a `ProgressBar` with the given

@@ -51,2 +45,9 @@ * `fmt` string and `options`.

this.rl.setPrompt('', 0);
this.rl.clearLine = function() {
if (process.platform === 'darwin') {
this.output.write('\r');
} else {
this.write(null, {ctrl: true, name: 'u'});
}
};

@@ -86,5 +87,5 @@ options = options || {};

// progress complete
if ((this.curr += len) > this.total) {
if ((this.curr += len) >= this.total) {
this.complete = true;
//this.rl.write(null, {ctrl: true, name: 'u'});
this.rl.clearLine();
this.rl.resume();

@@ -117,4 +118,4 @@ this.rl.close();

this.rl.write(null, {ctrl: true, name: 'u'});
this.rl.clearLine();
this.rl.write(str);
};
{
"name": "progress"
, "version": "0.1.0"
, "version": "1.0.0"
, "description": "Flexible ascii progress bar"

@@ -5,0 +5,0 @@ , "keywords": ["cli", "progress"]

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