easy-timeout
Simple replacement for setTimeout and setInterval
Installation
$ npm install --save easy-timeout
Usage
var timeout = Timeout; ; var interval = Interval;; interval;
As you might see in the usage that the argument passed in to timeout()
, interval()
and interval.count()
can be very flexible, anything that you feel is logical.
//it can be a string //1 minute 30 second //1 minute 30 second //1 minute 30 second //1 minute 30 second //it can be an object //it can be a list of numbers // timeout(ms) // timeout(s, ms) // timeout(m, s, ms) // timeout(h, m, s, ms) // timeout(d, h, m, s, ms) // timeout(y, d, h, m, s, ms)
Related
License
MIT