wangyewei / nprogress-esm

esm-friendly n-progress rewrite with typescript
https://nprogress-esm.vercel.app
MIT License
6 stars 0 forks source link

nprogress-esm

Esm-friendly nprogress rewrite with typescript

Get Started!



## Installation Use `npm` to install. ```sh $ npm install --save nprogress-esm ``` ## Basic usage Simply use `.start()` and `.done()` to control the start and end. ```typescript import Progress from 'nprogress-esm' import 'nprogress-esm/dist/style.css' Progress.start() Progress.done() ``` You can also use `.set()`. ```typescript Progress.set(0) // same as Progress.start() Progress.set(100) // same as Progress.end() ``` ## Thanks > [nprogress](https://github.com/rstacruz/nprogress) ## License [MIT](./LICENSE) License © 2024-Present [Yev Wang](https://github.com/wangyewei)