Gathering detailed insights and metrics for @basic-streams/multicast
Gathering detailed insights and metrics for @basic-streams/multicast
Gathering detailed insights and metrics for @basic-streams/multicast
Gathering detailed insights and metrics for @basic-streams/multicast
npm install @basic-streams/multicast
Typescript
Module System
Node Version
NPM Version
TypeScript (83.84%)
JavaScript (16.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
70 Stars
248 Commits
4 Forks
5 Watchers
1 Branches
2 Contributors
Updated on Feb 20, 2025
Latest Version
1.0.0
Package Id
@basic-streams/multicast@1.0.0
Unpacked Size
8.52 kB
Size
2.90 kB
File Count
8
NPM Version
6.1.0
Node Version
10.5.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
1
1multicast<T>(stream: Stream<T>): Stream<T>
Creates a stream with the same events as the given stream
. The new stream will
have at most one subscription at any given time to the original stream. This
allows you to connect several consumers to a stream.
Each consumer only gets events produced after it was added.
1import multicast from "@basic-streams/multicast" 2 3let cb 4 5const stream = _cb => { 6 console.log("start") 7 cb = _cb 8 return () => { 9 console.log("stop") 10 } 11} 12 13const result = multicast(stream) 14 15const unsubscribe1 = result(x => { 16 console.log("consumer 1", x) 17}) 18 19// > "start" 20 21const unsubscribe2 = result(x => { 22 console.log("consumer 2", x) 23}) 24 25// No output this time, because we reuse the previous connection, 26// and don't call `stream()` again. 27 28cb(1) 29 30// > "consumer 1" 1 31// > "consumer 2" 1 32 33unsubscribe1() 34 35// No output. The connection is still active because 36// one consumer is still subscribed. 37 38unsubscribe2() 39 40// > "stop"
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/19 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
detected GitHub workflow tokens with excessive permissions
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
48 existing vulnerabilities detected
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