Transparently handle API rate limiting with Popsicle.
npm install popsicle-limit --save
import { middleware, toFetch } from "popsicle";
import { Request } from "popsicle/dist/node";
import { limit, HOUR } from "popsicle-limit";
const fetch = toFetch([limit(5000, HOUR), middleware], Request);
MIT