Gathering detailed insights and metrics for simple.cache
Gathering detailed insights and metrics for simple.cache
Gathering detailed insights and metrics for simple.cache
Gathering detailed insights and metrics for simple.cache
npm install simple.cache
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1 Stars
19 Commits
3 Watching
6 Branches
1 Contributors
Updated on 31 Dec 2019
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-66.7%
5
Compared to previous day
Last week
14%
49
Compared to previous week
Last month
38.9%
218
Compared to previous month
Last year
-1.6%
4,052
Compared to previous year
a simple lru cache
const SimpleCache = require('simple.cache')
SimpleCache(max)
max integer, default to 1000
1const SimpleCache = require('simple.cache') 2 3const myCache = SimpleCache() 4 5myCache.set('foo', 123) 6myCache.set('bar', 456) 7 8myCache.get('bar')// returns 456 9 10myCache.remove('foo') 11 12myCache.size()// should return 1 13 14myCache.clear()// both caches are reset
props to Dominic Tarr for the amazing LRU algorithm
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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