https-rate-limit adds rate limiting in a seamless way to code that uses the default http and https node modules.