0.0.6 • Published 8 years ago

c-down v0.0.6

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

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago