miniprogress

1.1.3 • Public • Published

顶部进度条插件

first:

    npm i miniprogress -S

then:

    import miniprogress from 'miniprogress'
    import 'miniprogress/lib/progress.css'

there are several APIs below:

name arg type argDesrc featurs
start none --- --- start
inc none --- --- increase by 8% per time
set exist Int $gt:0 && $lt:1 custom set percent
done exist String if successful is null(mean don't input anything),if fail only input 'fail' end with success or fail
//eg:
miniprogress.start()
miniprogress.inc()
miniprogress.set(0.5)
miniprogress.done()
miniprogress.done('fail')

all of the above is what i hope you expect :)

Readme

Keywords

Package Sidebar

Install

npm i miniprogress

Weekly Downloads

0

Version

1.1.3

License

ISC

Last publish

Collaborators

  • cnfox