progress.js 223 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 #!/usr/bin/env node var cli = require('cli'); var i = 0, interval = setInterval(function () { cli.progress(++i / 100); if (i === 100) { clearInterval(interval); cli.ok('Finished!'); } }, 50);