multi-timer
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

multi-timer

example:

import { multiTimer } from 'multi-timer'

const timer = multiTimer()
  .pushStep({ duration: 1000, name: 'first' })
  .pushStep({ duration: 2000, name: 'second' })

timer.on('tick', ev => {
  console.log(ev.elapsed, ev.totalElapsed)
})

timer.on('stepchange', ev => {
  console.log(ev.step)
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.0-beta.60beta
1.0.0-beta.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.0-beta.60
1.0.0-beta.50
1.0.0-beta.40
1.0.0-beta.30
1.0.0-beta.20
1.0.0-beta.10

Package Sidebar

Install

npm i multi-timer

Weekly Downloads

0

Version

1.0.0-beta.1

License

MIT

Unpacked Size

60.2 kB

Total Files

22

Last publish

Collaborators

  • ivanross