Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyperhype/hyperprogress
A progress bar built with hyperscript
https://github.com/hyperhype/hyperprogress
hyperscript
Last synced: about 2 months ago
JSON representation
A progress bar built with hyperscript
- Host: GitHub
- URL: https://github.com/hyperhype/hyperprogress
- Owner: hyperhype
- License: mit
- Created: 2016-07-24T04:34:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T03:19:38.000Z (almost 8 years ago)
- Last Synced: 2024-10-29T10:48:13.530Z (2 months ago)
- Topics: hyperscript
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hyperprogress
create a progress bar
``` js
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