Installations
npm install @targos/pumpify
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.4.0
NPM Version
6.9.0
Score
69.9
Supply Chain
84.1
Quality
74.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
targos
Download Statistics
Total Downloads
624
Last Day
1
Last Week
3
Last Month
7
Last Year
84
GitHub Statistics
55 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
43.38 kB
Minified
12.24 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
624
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
pumpify
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
Usage
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).
Using 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)
License
MIT
Related
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
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'
Score
3
/10
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