0.0.6 • Published 7 years ago

c-down v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago