nprogress-esm
v0.2.6
Published
ESM-friendly NProgress Rewrite With Typescript
Downloads
100
Readme
Installation
Use npm
to install.
$ npm install --save nprogress-esm
Basic usage
Simply use .start()
and .done()
to control the start and end.
import Progress from 'nprogress-esm'
import 'nprogress-esm/dist/style.css'
Progress.start()
Progress.done()
You can also use .set()
.
Progress.set(0) // same as Progress.start()
Progress.set(100) // same as Progress.end()