Combines array of streams into one Readable stream in strict order.
Installations
npm install ordered-read-streams
Developer
gulpjs
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
>= 10.13.0
Typescript Support
No
Node Version
16.14.2
NPM Version
8.11.0
Statistics
28 Stars
63 Commits
9 Forks
6 Watching
1 Branches
9 Contributors
Updated on 05 Nov 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
826,527,967
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
ordered-read-streams
Combines array of streams into one Readable stream in strict order.
Usage
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});
API
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.
License
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/gulpjs/.github/SECURITY.md:1
- Info: Found linked content: github.com/gulpjs/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/gulpjs/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/gulpjs/.github/SECURITY.md:1
Reason
Found 10/28 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dev.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/dev.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/dev.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dev.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dev.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dev.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/dev.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/gulpjs/ordered-read-streams/release.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/dev.yml:51
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
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
- Warn: no topLevel permission defined: .github/workflows/dev.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 12 are checked with a SAST tool
Score
4.3
/10
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