Gathering detailed insights and metrics for @targos/pumpify
Gathering detailed insights and metrics for @targos/pumpify
Gathering detailed insights and metrics for @targos/pumpify
Gathering detailed insights and metrics for @targos/pumpify
npm install @targos/pumpify
Typescript
Module System
Node Version
NPM Version
69.9
Supply Chain
84.1
Quality
74.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
624
Last Day
1
Last Week
3
Last Month
7
Last Year
84
55 Commits
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
@targos/pumpify@2.0.0
Unpacked Size
9.92 kB
Size
3.37 kB
File Count
6
NPM Version
6.9.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
200%
3
Compared to previous week
Last month
133.3%
7
Compared to previous month
Last year
-31.1%
84
Compared to previous year
Combine an array of streams into a single duplex stream using pump and duplexify. If one of the streams closes/errors all streams in the pipeline will be destroyed.
npm install pumpify
Pass the streams you want to pipe together to pumpify pipeline = pumpify(s1, s2, s3, ...)
.
pipeline
is a duplex stream that writes to the first streams and reads from the last one.
Streams are piped together using pump so if one of them closes
all streams will be destroyed.
1var pumpify = require('pumpify') 2var tar = require('tar-fs') 3var zlib = require('zlib') 4var fs = require('fs') 5 6var untar = pumpify(zlib.createGunzip(), tar.extract('output-folder')) 7// you can also pass an array instead 8// var untar = pumpify([zlib.createGunzip(), tar.extract('output-folder')]) 9 10fs.createReadStream('some-gzipped-tarball.tgz').pipe(untar)
If you are pumping object streams together use pipeline = pumpify.obj(s1, s2, ...)
.
Call pipeline.destroy()
to destroy the pipeline (including the streams passed to pumpify).
setPipeline(s1, s2, ...)
Similar to duplexify you can also define the pipeline asynchronously using setPipeline(s1, s2, ...)
1var untar = pumpify() 2 3setTimeout(function() { 4 // will start draining the input now 5 untar.setPipeline(zlib.createGunzip(), tar.extract('output-folder')) 6}, 1000) 7 8fs.createReadStream('some-gzipped-tarball.tgz').pipe(untar)
MIT
pumpify
is part of the mississippi stream utility collection which includes more useful stream modules similar to this one.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
Score
Last Scanned on 2025-01-20
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