UNPKG

limiter.js

Version:

limiter.js is a Node.js/TypeScript library that provides simple Rate limiter protection for Express applications. It tracks requests per IP address and enforces rate limits within a sliding time window. If an IP exceeds the allowed requests, limiter.js ca

4 lines (3 loc) 232 B
import { Request, Response, NextFunction } from "express"; import { Detector } from "../core/Detector"; export declare const expressGuardMiddleware: (detector: Detector) => (req: Request, res: Response, next: NextFunction) => void;