smooth-progress
Advanced tools
Comparing version 0.0.0 to 1.0.0
@@ -27,7 +27,13 @@ 'use strict'; | ||
function line () { | ||
return bar.tmpl | ||
function line (tokens) { | ||
let line = bar.tmpl | ||
.replace(':bar', renderBar()) | ||
.replace(':percent', pad(Math.round(bar.percent * 100)) + '%') | ||
.replace(':eta', eta()); | ||
if (tokens) { | ||
for (let token of Object.keys(tokens)) { | ||
line = line.replace(':' + token, tokens[token]); | ||
} | ||
} | ||
return line; | ||
} | ||
@@ -34,0 +40,0 @@ |
{ | ||
"name": "smooth-progress", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "pixel-by-pixel CLI progress bar", | ||
"main": "index.js", | ||
"engines": {"node": ">= 4.0.0"}, | ||
"engines": { | ||
"node": ">= 4.0.0" | ||
}, | ||
"scripts": { | ||
@@ -8,0 +10,0 @@ "test": "node test.js" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3982
115
0