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
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
28 Stars
63 Commits
9 Forks
6 Watching
1 Branches
9 Contributors
Updated on 05 Nov 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-3.9%
409,847
Compared to previous day
Last week
3.4%
2,249,143
Compared to previous week
Last month
22.4%
8,666,479
Compared to previous month
Last year
-10.7%
99,471,937
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 10/28 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
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 2024-11-18
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