Gathering detailed insights and metrics for @types/ratelimiter
Gathering detailed insights and metrics for @types/ratelimiter
Gathering detailed insights and metrics for @types/ratelimiter
Gathering detailed insights and metrics for @types/ratelimiter
The repository for high quality TypeScript type definitions.
npm install @types/ratelimiter
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,027 Stars
89,737 Commits
30,433 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 12, 2025
Latest Version
3.4.6
Package Id
@types/ratelimiter@3.4.6
Unpacked Size
5.73 kB
Size
2.08 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install --save @types/ratelimiter
This package contains type definitions for ratelimiter (https://github.com/tj/node-ratelimiter).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ratelimiter.
1interface RedisClient { 2 multi(operations: any[][]): { exec(cb: (err: any, res: any) => unknown): void }; 3} 4 5declare class Limiter { 6 constructor(opts: Limiter.LimiterOption); 7 8 /** 9 * Inspect implementation 10 */ 11 inspect(): string; 12 13 /** 14 * Get values and header / status code and invoke `fn(err, info)`. 15 */ 16 get(fn: (err: any, info: Limiter.LimiterInfo) => void): void; 17} 18 19declare namespace Limiter { 20 interface LimiterOption { 21 /** 22 * The identifier to limit against (typically a user id) 23 */ 24 id: string; 25 26 /** 27 * Redis connection instance 28 */ 29 db: RedisClient; 30 31 /** 32 * Max requests within duration 33 * @default 2500 34 */ 35 max?: number | undefined; 36 37 /** 38 * Duration of limit in milliseconds 39 * @default 3600000 40 */ 41 duration?: number | undefined; 42 } 43 44 /** 45 * Result Object 46 */ 47 interface LimiterInfo { 48 /** 49 * `max` value 50 */ 51 total: number; 52 53 /** 54 * number of calls left in current `duration` without decreasing current `get` 55 */ 56 remaining: number; 57 58 /** 59 * time since epoch in seconds at which the rate limiting period will end (or already ended) 60 */ 61 reset: number; 62 63 /** 64 * time since epoch in milliseconds at which the rate limiting period will end (or already ended) 65 */ 66 resetMs: number; 67 } 68} 69 70export = Limiter; 71
These definitions were written by Aya Morisawa, and Piotr Błażejewicz.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More