8000 GitHub - wangyewei/nprogress-esm: 🧷 ESM-friendly n-progress rewrite with typescript
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wangyewei/nprogress-esm

Repository files navigation

nprogress-esm

Esm-friendly nprogress rewrite with typescript

Get Started!



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()

Thanks

nprogress

License

MIT License © 2024-Present Yev Wang

About

🧷 ESM-friendly n-progress rewrite with typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0