0.0.6 • Published 6 years ago

c-down v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

c-down

a simple count down util.

useage

  const cd = new CDown({
    duration: 60,  // default
    interval: 1,   // default
    onProgress: (status, current) => {
      console.log(status + ':' + current);
    }
  })

duration

this counter duration.

interval

this counter interval.

onProgress

onProgress called with 2 params, status & current.

  • status is one of 'start' 'running' or 'end', indicate the status of this counter.
  • current is current count of this counter.
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago