task-timer

0.0.3 • Public • Published

timer

a human oriented timer for javascript

// start running in 2000 ms just like javascript's default timer
var timer = new Timer(function() {
  console.log('running')
}, 2000)
 
timer.run()
timer.start()
timer.stop()
timer.reset()
timer.reset(1000)
// timer will not be started any more.
timer.cancel()

Package Sidebar

Install

npm i task-timer

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • damngoto