Comparing version 0.1.0 to 1.0.0
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 @@ ================== |
@@ -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"] |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7273
103
1