popsicle-limit
v2.0.0
Published
Transparently handle API rate limiting with Popsicle
Downloads
5
Maintainers
Readme
Popsicle Limit
Transparently handle API rate limiting with Popsicle.
Installation
npm install popsicle-limit --save
Usage
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);
License
MIT