Esm-friendly nprogress rewrite with typescript
## 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)