nprogress-es
v1.3.0
Published
nprogress rewrite with typescript
Downloads
378
Maintainers
Readme
nprogress
nprogress rewrite with typescript
Installation
Use npm
to install.
$ npm install nprogress-es
Basic usage
Simply use .start()
and .done()
to control the start and end.
import NProgress from 'nprogress-es'
import 'nprogress-es/nprogress.css' // or import 'nprogress-es/dist/nprogress.css'
NProgress.start()
NProgress.done()
You can also use .set()
.
NProgress.set(0) // same as NProgress.start()
NProgress.set(100) // same as NProgress.end()