UNPKG
rate-limiter-custom
Version:
latest (1.0.7)
1.0.7
1.0.2
1.0.1
1.0.0
A fast, customizable, and efficient rate-limiting middleware for Express in TypeScript.
rate-limiter-custom
/
dist
/
config.d.ts
9 lines
(8 loc)
•
221 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
interface
RateLimiterOptions
{
windowMs
:
number
;
maxRequests
:
number
;
algo
?:
"sliding"
|
"fixed"
|
"token"
|
"leaky"
;
tokensPerInterval
?:
number
;
leakRate
?:
number
;
errorMessage
?:
string
; }