Gathering detailed insights and metrics for rememoize
Gathering detailed insights and metrics for rememoize
Gathering detailed insights and metrics for rememoize
Gathering detailed insights and metrics for rememoize
Memoize results of async functions and refresh them periodically in background.
npm install rememoize
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
14 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Feb 09, 2018
Latest Version
0.1.1
Package Id
rememoize@0.1.1
Size
3.27 kB
NPM Version
2.5.1
Node Version
0.12.0
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
Memoize results of async functions and refresh them periodically in background.
* May contain traces of sin and unicorn tears.
npm install rememoize
Wrap an async function with rememoize
like so:
1var rememoize = require('rememoize') 2var rememoizedFunction = rememoize(<asyncFunction>, [options]) 3 4rememoizedFunction(<callback>)
Argument options
is optional and may specify the following values:
1{ 2 initialValue : [any_value] 3 refreshInterval : [milliseconds] 4}
initialValue
If set, specifies an initial value that will be returned immediately on first call to rememoized function. If not set, initial calls will be queued up until first iteration has completed.refreshInterval
If set, specifies the interval at which the rememoized function will be refreshed in background. If not, the given async function will only be called once (and it's result will be cached).1var rememoize = require('rememoize') 2 3var rememoizedFunction = rememoize(function(done) { 4 // Awww, this takes long to complete 5 doLongRunningAsyncStuff(function(err, result) { 6 done(err, result) 7 }) 8}, { 9 initialValue: 'my initial value', 10 refreshInterval: 1000 11}) 12 13rememoizedFunction(function(err, result) { 14 if (err) throw err 15 console.log('Got result:', result) 16})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/14 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 SAST tool detected
Details
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
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