@jfhbrook/fake-progress-not-frozen

1.1.0 • Public • Published

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!

/@jfhbrook/fake-progress-not-frozen/

    Package Sidebar

    Install

    npm i @jfhbrook/fake-progress-not-frozen

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • jfhbrook