console-progress-bar
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -43,2 +43,3 @@ // Constants. | ||
this.percent = 0; | ||
this.filledParts = 0; | ||
this.maxValue = progressBarOptions.maxValue; | ||
@@ -66,2 +67,8 @@ this.startChars = progressBarOptions.startChars; | ||
// Check if filled parts amount chnaged. | ||
if (filledParts === this.filledParts) { | ||
return; | ||
} | ||
this.filledParts = filledParts; | ||
// Show progress bar. | ||
@@ -68,0 +75,0 @@ const progressBarString = `${this.startChars}${filledPartsCharsString}${notFilledPartCharsString}${this.endChars}`; |
{ | ||
"name": "console-progress-bar", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Console progress bar", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
@@ -13,2 +13,2 @@ // Import. | ||
} | ||
}, 10); | ||
}, 20); |
5833
116