MCPcopy
hub / github.com/visionmedia/node-progress / bar3

Function bar3

examples/formats.js:35–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function bar3() {
36 var bar = new ProgressBar(' download |:bar| :percent', {
37 complete: '='
38 , incomplete: ' '
39 , width: 40
40 , total: 20
41 });
42
43 var id = setInterval(function(){
44 bar.tick();
45 if (bar.complete) {
46 clearInterval(id);
47 bar4();
48 }
49 }, 100);
50}
51
52function bar4() {
53 var bar = new ProgressBar(' :current of :total :percent', {

Callers 1

bar2Function · 0.85

Calls 1

bar4Function · 0.85

Tested by

no test coverage detected