git ssb

0+

Dominic / hyperprogress



Tree: 84e8acd6b25c6a0ee91b1246f2cc39444d9ccad1

Files: 84e8acd6b25c6a0ee91b1246f2cc39444d9ccad1 / README.md

514 bytesRaw

hyperprogress

create a progress bar

var progress = require('hyperprogress')(10) //for a 10 step bar.

document.body.appendChild(progress)

progress.next() //go to next step
progress.next('step name') //append a step to the list.

//if the process fails, call with an error.
progress.fail(new Error('failed'))

has no dependencies. 1.4k

you'll need to use CSS to make the progress bar visible. at minimum you need:

.hyperprogress__liquid { height: 1px; background: blue;}

License

MIT

Built with git-ssb-web