Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.11 KB

Popsicle Limit

NPM version NPM downloads Build status Test coverage

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