oop-timers

oop-timers are OOP timers (timeout and interval) for JavaScript. If you need to clear timeouts a lot and don't want keep track of timers id and passing them to clearTimeout - this library is for you.

I bet you probably have written such class few times already, copying and pasting it over various projects or rewriting each time. As no one published such code yet - I just did, so you don't have to.

Docs

Documentation can be found here: oop-timers documentation. Jump directly to usage description: oop-timers usage.

Installing

npm install oop-timers

Features

  • OOP way of writing timers
  • Unit tests

To be done

  • Support for setImmediate?
  • Support for requestAnimationFrame?

License

MIT