Gathering detailed insights and metrics for sandwich-stream
Gathering detailed insights and metrics for sandwich-stream
Gathering detailed insights and metrics for sandwich-stream
Gathering detailed insights and metrics for sandwich-stream
Concatenate and wrap streams with head, tail and separators.
npm install sandwich-stream
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.5
Supply Chain
85.8
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (94.59%)
JavaScript (5.41%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
4 Stars
35 Commits
1 Forks
1 Watchers
3 Branches
3 Contributors
Updated on Aug 30, 2023
Minified
Minified + Gzipped
Latest Version
2.0.2
Package Id
sandwich-stream@2.0.2
Size
5.43 kB
NPM Version
6.4.1
Node Version
10.12.0
Published on
Oct 31, 2018
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
While I'm not overjoyed about how performant the internals will operate, I wanted a readable stream that was ACTUALLY A READABLE STREAM. Not a streams1 stream masquerading as streams2. As soon as somebody writes a better concat stream as a readable stream with a nice simple API, this baby is going to develop some serious abandonment issues.
1npm install sandwich-stream --save
note: this code was made using it TypeScript, and its typings are linked in package.json, so there's no need of installing @types/sandwich-stream or anything related.
1import { SandwichStream } from 'sandwich-stream'; 2// OR EVEN: 3// const SandwichStream = require('sandwich-stream'); 4 5const sandwich = SandwichStream({ 6 head: 'Thing at the top\n', 7 tail: '\nThing at the bottom', 8 separator: '\n ---- \n' 9}); 10 11sandwich.add(aStreamIPreparedEarlier) 12 .add(anotherStreamIPreparedEarlier) 13 .add(aFurtherStreamIPreparedEarlier) 14 .pipe(process.stdout); 15 16// The thing at the top 17// ---- 18// Stream1 19// ---- 20// Stream2 21// ---- 22// Stream3 23// The thing at the bottom
head
option takes a string/buffer and pushes the string before all other contentfoot
option takes a string/buffer and pushes the string after all other data has been pushedseparator
option pushes a string/buffer between each streamToo add a stream use the .add method: sandwich.add(streamVariable);
Wanna known more about Node Streams? Read this.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/10 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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-05-05
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