This package loops funtions for a couple of time
npm i fornum-minecodes
or
yarn add fornum-minecodes
or
npm i git+https://github.com/Minecodes/fornum.git
const fornum = require("fornum-minecodes");
fornum(() => {
console.log("Hello ;)");
}, 4);