MCPcopy Create free account
hub / github.com/npkgz/cli-progress / Example4

Function Example4

examples/example.js:110–123  ·  view source on GitHub ↗
(onComplete)

Source from the content-addressed store, hash-verified

108}
109
110function Example4(onComplete){
111 // EXAMPLE 1 ---------------------------------------------
112 console.log('\nExample 4 - Start ZERO');
113 // create new progress bar using default values
114 const b1 = new _progress.Bar();
115 b1.start(0, 0);
116
117 setTimeout(function(){
118 b1.stop();
119
120 // run complete callback
121 onComplete.apply(this);
122 }, 1000);
123}
124
125function Example5(onComplete){
126 // EXAMPLE 5 ---------------------------------------------

Callers 1

example.jsFile · 0.85

Calls 3

logMethod · 0.80
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…