Gathering detailed insights and metrics for @types/stale-lru-cache
Gathering detailed insights and metrics for @types/stale-lru-cache
Gathering detailed insights and metrics for @types/stale-lru-cache
Gathering detailed insights and metrics for @types/stale-lru-cache
The repository for high quality TypeScript type definitions.
npm install @types/stale-lru-cache
Typescript
Module System
68.3
Supply Chain
79.8
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
418,502
Last Day
16
Last Week
844
Last Month
3,513
Last Year
91,691
NOASSERTION License
49,992 Stars
89,688 Commits
30,436 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 03, 2025
Latest Version
5.1.6
Package Id
@types/stale-lru-cache@5.1.6
Unpacked Size
4.86 kB
Size
1.83 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
60%
16
Compared to previous day
Last Week
0.8%
844
Compared to previous week
Last Month
-6.1%
3,513
Compared to previous month
Last Year
-7.8%
91,691
Compared to previous year
npm install --save @types/stale-lru-cache
This package contains type definitions for stale-lru-cache (https://github.com/cyberthom/stale-lru-cache).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stale-lru-cache.
1declare class Cache<K, V> { 2 constructor(options?: Cache.CacheOptions<K, V>); 3 delete(key: K): boolean; 4 get(key: K): V | undefined; 5 set(key: K, value: V, options?: string | Cache.SetOptions<K, V>): boolean; 6 has(key: K): boolean; 7 isStale(key: K): boolean; 8 keys(): K[]; 9 reset(): void; 10 size(): number; 11 values(): V[]; 12 wrap( 13 key: K, 14 revalidate: Cache.RevalidationCallback<K, V>, 15 callback: Cache.OptionsCallback<K, V>, 16 ): void; 17} 18 19declare namespace Cache { 20 type OptionsCallback<K, V> = (error: any, value?: V, options?: string | SetOptions<K, V>) => void; 21 type RevalidationCallback<K, V> = (key: K, callback: OptionsCallback<K, V>) => void; 22 23 interface CacheOptions<K, V> { 24 maxAge?: number | undefined; 25 staleWhileRevalidate?: number | undefined; 26 revalidate?: RevalidationCallback<K, V> | undefined; 27 maxSize?: number | undefined; 28 getSize?(value: V, key: K): number; 29 } 30 31 interface SetOptions<K, V> { 32 maxAge?: number | undefined; 33 staleWhileRevalidate?: number | undefined; 34 revalidate?: RevalidationCallback<K, V> | undefined; 35 } 36} 37 38export = Cache; 39
These definitions were written by Joona Heikkilä.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 25/29 approved changesets -- score normalized to 8
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-06-30
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