1 | var ProgressBar = require('progress');
|
2 |
|
3 | var bar = new ProgressBar(':bar', { total: 10 });
|
4 | var timer = setInterval(function () {
|
5 | bar.tick();
|
6 | if (bar.complete) {
|
7 | console.log('\ncomplete\n');
|
8 | clearInterval(timer);
|
9 | }
|
10 | }, 100); |
\ | No newline at end of file |