kc-timer
v1.0.4
Published
[js] Wait miliseconsd and exec iteratively.
Downloads
6
Readme
Timer
[js] Wait miliseconsd and exec iteratively.
Install
npm install kc-timer
Use
var timer = require('kc-timer');
var i = 0;
var t = timer(1000, function(){
i++;
console.log(i);
if (i == 5) {
t.stop();
}
});