1.0.6 • Published 10 years ago
settheinterval v1.0.6
setTheInterval v1.0.6
starts function running automatically with setInterval (first npm package)
Installation
npm install settheinterval
Usage
var sti = require('settheinterval');
// a simple test function
function log(){
console.log("hello world");
}
// call the log() function once every second (once ea. 1000 ms.)
sti.perform(log,1000);
Credit
All credit for this package goes to Evan Hahn, this package is simply the result of following his tutorial. None of this code is original. I simply changed the package name from the one in the tutorial and changed the file structure a little bit, that's it.