Gathering detailed insights and metrics for @rearguard/batch
Gathering detailed insights and metrics for @rearguard/batch
npm install @rearguard/batch
Typescript
Module System
69.5
Supply Chain
76.3
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
9,346
Last Day
1
Last Week
2
Last Month
54
Last Year
342
4 Stars
66 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.9.6
Package Id
@rearguard/batch@1.9.6
Unpacked Size
4.45 kB
Size
2.11 kB
File Count
8
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-90.9%
2
Compared to previous week
Last month
134.8%
54
Compared to previous month
Last year
-52.6%
342
Compared to previous year
1npm i @rearguard/batch
@rearguard/batch
is an LRU batching cache mechanism, it allows stacking and progressively releasing an array of data based on ticking mechanism.
1const {batchLru} = require('@rearguard/batch'); 2 3/** 4 * max items: 2 5 * ttl: 1000ms 6 * fn: callback 7 * timeout: timeout in order to release the resource 8 */ 9const batch = batchLru(2, 1000, items => { 10 console.log(items); 11}); 12 13batch.add(1); 14batch.add({foo: 'bar'}); 15 16// after 1000ms 17// => [1, {foo: 'bar'}]
1yarn test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 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
dependency not pinned by hash detected -- score normalized to 0
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
45 existing vulnerabilities detected
Details
Score
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