progress.js 223 B

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