Gathering detailed insights and metrics for ordered-read-streams
Gathering detailed insights and metrics for ordered-read-streams
Gathering detailed insights and metrics for ordered-read-streams
Gathering detailed insights and metrics for ordered-read-streams
Combines array of streams into one Readable stream in strict order.
npm install ordered-read-streams
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
28 Stars
63 Commits
9 Forks
5 Watchers
1 Branches
9 Contributors
Updated on Nov 05, 2023
Latest Version
2.0.0
Package Id
ordered-read-streams@2.0.0
Unpacked Size
7.55 kB
Size
2.90 kB
File Count
4
NPM Version
8.11.0
Node Version
16.14.2
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
Combines array of streams into one Readable stream in strict order.
1var { Readable } = require('streamx'); 2var ordered = require('ordered-read-streams'); 3 4var s1 = new Readable({ 5 read: function (cb) { 6 var self = this; 7 if (self.called) { 8 self.push(null); 9 return cb(null); 10 } 11 setTimeout(function () { 12 self.called = true; 13 self.push('stream 1'); 14 cb(null); 15 }, 200); 16 }, 17}); 18var s2 = new Readable({ 19 read: function (cb) { 20 var self = this; 21 if (self.called) { 22 self.push(null); 23 return cb(null); 24 } 25 setTimeout(function () { 26 self.called = true; 27 self.push('stream 2'); 28 cb(null); 29 }, 30); 30 }, 31}); 32var s3 = new Readable({ 33 read: function (cb) { 34 var self = this; 35 if (self.called) { 36 self.push(null); 37 return cb(null); 38 } 39 setTimeout(function () { 40 self.called = true; 41 self.push('stream 3'); 42 cb(null); 43 }, 100); 44 }, 45}); 46 47var readable = ordered([s1, s2, s3]); 48readable.on('data', function (data) { 49 console.log(data); 50 // Logs: 51 // stream 1 52 // stream 2 53 // stream 3 54});
ordered(streams, [options])
Takes an array of Readable
streams and produces a single OrderedReadable
stream that will consume the provided streams in strict order. The produced Readable
stream respects backpressure on itself and any provided streams.
orderedReadable.addSource(stream)
The returned Readable
stream has an addSource
instance function that takes appends a Readable
stream to the list of source streams that the OrderedReadable
is reading from.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 10/28 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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