Gathering detailed insights and metrics for aggregate-async-iterator
Gathering detailed insights and metrics for aggregate-async-iterator
Gathering detailed insights and metrics for aggregate-async-iterator
Gathering detailed insights and metrics for aggregate-async-iterator
npm install aggregate-async-iterator
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
0BSD License
1 Stars
1,278 Commits
2 Watchers
2 Branches
1 Contributors
Updated on Jun 30, 2025
Latest Version
1.2.1
Package Id
aggregate-async-iterator@1.2.1
Unpacked Size
9.57 kB
Size
3.33 kB
File Count
5
NPM Version
10.5.0
Node Version
20.11.1
Published on
Mar 11, 2024
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
6
Aggregates several async iterators into one (zip)
1import { aggregateRoundRobin, aggregateFifo } from "aggregate-async-iterator"; 2 3async function* sequence(name, time = 100, num = 10) { 4 for (let i = 0; i < num; i += 1) { 5 yield new Promise(resolve => setTimeout(resolve(name + i), time)); 6 } 7} 8 9console.log("RR:"); 10 11for await (const r of aggregateRoundRobin([ 12 sequence("A", 100, 3), 13 sequence("B", 35, 5) 14 ])) { 15 console.log(r); 16} 17 18console.log("FIFO:"); 19 20for await (const r of aggregateFifo([ 21 sequence("A", 100, 3), 22 sequence("B", 35, 5) 23 ])) { 24 console.log(r); 25}
Prints interleaved sequences
1RR: 2A0 3B0 4A1 5B1 6A2 7B2 8B3 9B4 10FIFO: 11A0 12B0 13A1 14B1 15A2 16B2 17B3 18B4
Aggregate items from sevaral async iterators into one. Items are collected first in first out from the sources. Whatever source comes first will be delivered first.
sources
Array<AsyncIterator<any>> Returns AsyncIterable<any> items collected from all sources
Aggregate items from sevaral async iterators into one. Items are collected round robin from the sources. The 2nd. round of items will only be delivered after all sources have delivered their 1st. round (or reached their end).
sources
Array<AsyncIterator<any>> Returns AsyncIterable<any> items collected from all sources
With npm do:
1npm install aggregate-async-iterator
BSD-2-Clause
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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