@jfhbrook/fake-progress-not-frozen

a shitpost-y fake progress bar

Usage no npm install needed!

<script type="module">
  import jfhbrookFakeProgressNotFrozen from 'https://cdn.skypack.dev/@jfhbrook/fake-progress-not-frozen';
</script>

README

FAKE PROGRESS: (NOT frozen)

a ridiculous fake progress bar to show that the app is still working

example

this is a full example, which you can also run with node ./example.js in this repo:

var chalk = require('chalk');
var Ticker = require('./');

var ticker = new Ticker();

function log(message) {
  console.log(chalk.green('info') + ':   ' + message);
}

log('about to do something that will take a while...');

var SECONDS = 1000;
var howLong = 15 * SECONDS;

ticker.start();

setTimeout(function () {
  ticker.stop(function (err) {
    if (err) throw err;
    log('all done!');
  });
}, howLong);

this example was used to generate the above screenshot.

license

MIT!