throttle-function
A simple and generic rate limiter to prevent too many function calls or http requests.