Gathering detailed insights and metrics for @rushstack/stream-collator
Gathering detailed insights and metrics for @rushstack/stream-collator
Gathering detailed insights and metrics for @rushstack/stream-collator
Gathering detailed insights and metrics for @rushstack/stream-collator
Monorepo for tools developed by the Rush Stack community
npm install @rushstack/stream-collator
Typescript
Module System
Node Version
NPM Version
96.3
Supply Chain
88.1
Quality
92.5
Maintenance
100
Vulnerability
99.3
License
TypeScript (96.55%)
JavaScript (3.13%)
SCSS (0.15%)
Shell (0.05%)
HTML (0.05%)
CSS (0.03%)
Sass (0.03%)
Batchfile (0.01%)
Total Downloads
49,133,077
Last Day
8,607
Last Week
328,949
Last Month
1,385,580
Last Year
14,943,754
NOASSERTION License
6,207 Stars
22,474 Commits
631 Forks
53 Watchers
101 Branches
285 Contributors
Updated on Jun 19, 2025
Minified
Minified + Gzipped
Latest Version
4.1.103
Package Id
@rushstack/stream-collator@4.1.103
Unpacked Size
383.94 kB
Size
40.00 kB
File Count
23
NPM Version
10.8.2
Node Version
20.19.1
Published on
May 13, 2025
Cumulative downloads
Total Downloads
Last Day
-0.1%
8,607
Compared to previous day
Last Week
-6.3%
328,949
Compared to previous week
Last Month
4.9%
1,385,580
Compared to previous month
Last Year
1.8%
14,943,754
Compared to previous year
2
2
This library enables a tool to display live console output from multiple concurrent processes, while ensuring that their output does not get jumbled together.
The stream-collator manages the output of these streams, ensuring that no two streams are writing to the console at the same time. At any given time, one stream registered with the collator is the active stream, which means that particular stream will be live streaming, while the others will wait for that stream to finish before their output is displayed.
For example, if you have 3 streams (e.g. from using child_process.spawn()
).
Stream A will write: AAAAA
Stream B will write: BBBBBBBBBBBBBBBBBBBB
Stream C will write: CCCCCCCCCC
If these streams are all being piped directly to stdout (without @rushstack/stream-collator
), you could end up
with jumbled output:
ABACCCBCCCCBBABBCBBABBBBBBCCAB
Something like the following would be much more useful to users of your application:
AAAAABBBBBBBBBBBBBBBCCCCCCCCCC
This is where the @rushstack/stream-collator
comes in!
At any given time, a single stream is designated as the active stream. The output of the active stream will always be live-streamed. This is particularly useful for long-running streams. When the active stream finishes, a new stream is selected as the active stream and all of its contents up to that point will be emitted. Whenever an active stream finishes, all background streams which have been completed will be emitted.
🚨 This is an early preview release. Please report issues! 🚨
WITH VERSION 4.X, THIS PACKAGE HAS BEEN REDESIGNED TO USE THE NEW @rushstack/terminal SYSTEM. IN THE NEXT RELEASE, THE
CollatedTerminal
API WILL BE REPLACED WITH THETerminal
API.The usage instructions will be updated once that refactoring is complete.
@rushstack/stream-collator
is part of the Rush Stack family of projects.
No vulnerabilities found.
Reason
30 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 14/30 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-09
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