Installations
npm install nano-persistent-memoizer
Developer Guide
Typescript
No
Module System
CommonJS, UMD
Node Version
8.1.3
NPM Version
5.0.3
Score
69.5
Supply Chain
70.4
Quality
75.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
maiavictor
Download Statistics
Total Downloads
1,564
Last Day
2
Last Week
3
Last Month
14
Last Year
110
GitHub Statistics
3 Stars
3 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
636.00 B
Minified
331.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.1.2
Package Id
nano-persistent-memoizer@0.1.2
Size
1.85 kB
NPM Version
5.0.3
Node Version
8.1.3
Total Downloads
Cumulative downloads
Total Downloads
1,564
Last day
100%
2
Compared to previous day
Last week
50%
3
Compared to previous week
Last month
180%
14
Compared to previous month
Last year
-6.8%
110
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
nano-persistent-memoizer
Memoizes a String -> String
or String -> Promise String
function persistently. It uses window.localStorage
on the browser and the filesystem (~/.nano-persistent-memoizer
) on Node. <1K compressed.
Usage
1var memo = require("nano-persistent-memoizer"); 2 3var twice = memo("twice").async(str => { 4 for (var i = 0; i <Â 10000000; ++i) { 5 Math.sin(i); 6 } 7 return Promise.resolve(str + str); 8}); 9 10(async () => { 11 console.log(await twice("foo")); // slow 12 console.log(await twice("bar")); // slow 13 console.log(await twice("foo")); // instant (cached) 14 console.log(await twice("bar")); // instant (cached) 15 twice.clear(); // clears cache 16})();
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-01-27
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