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.6
Supply Chain
87.7
Quality
95.4
Maintenance
100
Vulnerability
99.3
License
TypeScript (96.31%)
JavaScript (3.37%)
SCSS (0.16%)
Shell (0.05%)
HTML (0.05%)
CSS (0.03%)
Sass (0.03%)
Batchfile (0.01%)
Total Downloads
43,339,643
Last Day
34,209
Last Week
251,141
Last Month
750,786
Last Year
14,562,141
6,018 Stars
22,255 Commits
609 Forks
54 Watching
107 Branches
279 Contributors
Minified
Minified + Gzipped
Latest Version
4.1.81
Package Id
@rushstack/stream-collator@4.1.81
Unpacked Size
375.12 kB
Size
39.32 kB
File Count
23
NPM Version
10.8.2
Node Version
20.18.1
Publised On
09 Jan 2025
Cumulative downloads
Total Downloads
Last day
-23.5%
34,209
Compared to previous day
Last week
-1.3%
251,141
Compared to previous week
Last month
-34.1%
750,786
Compared to previous month
Last year
1.1%
14,562,141
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 15 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 12/30 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-13
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