throttle-factory Another library to throttle calls. Seamlessly throttle calls. var throttleFactory = require("throttle-factory");var throttle = throttleFactory(10, 1000); // these 100 calls will take 10 secondsfor (var i = 0; i < 100; i++) { throttle.execute(() => { console.log("do something"); });}