UNPKG

@canmertinyo/rate-limiter-core

Version:

A simple rate-limiting middleware for Express.js with support for in-memory, Redis, and MongoDB storage

11 lines (9 loc) 202 B
import "express"; import { RateLimitRecord } from "./interfaces"; declare global { namespace Express { interface Request { [key: string]: RateLimitRecord | undefined; } } }