Installations
npm install proxy-pumpify
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
5.5.0
NPM Version
3.3.12
Score
66.2
Supply Chain
75.8
Quality
72
Maintenance
25
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
tjmehta
Download Statistics
Total Downloads
1,239
Last Day
1
Last Week
3
Last Month
9
Last Year
52
GitHub Statistics
2 Stars
6 Commits
1 Forks
3 Watching
2 Branches
1 Contributors
Bundle Size
44.80 kB
Minified
13.29 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
proxy-pumpify@1.0.0
Size
3.84 kB
NPM Version
3.3.12
Node Version
5.5.0
Total Downloads
Cumulative downloads
Total Downloads
1,239
Last day
0%
1
Compared to previous day
Last week
0%
3
Compared to previous week
Last month
50%
9
Compared to previous month
Last year
-37.3%
52
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Dev Dependencies
6
proxy-pumpify
pipeline streams (combine) and also proxy non-stream methods. useful for advanced stream transforms like req and res.
Installation
1npm i --save proxy-pumpify
Usage
Example: transform a request
1require('http').createServer(function (req, res) { 2 // reverseStream reverses a stream 3 var reqTransform = pumpify(req, reverseStream()) 4 // all methods and properties of request should work on reqTransform 5 var url = reqTransform.url 6 var headers = reqTransform.headers 7 // ... 8 // this will pipe the reversed req body to res 9 reqTransform.pipe(res) 10})
Example: transform a response
1var httpProxy = require('http-proxy') 2var proxy = httpProxy.createProxyServer(); 3 4require('http').createServer(function (req, res) { 5 // reverseStream reverses a stream 6 // resTransform inherits from res: inherits takes 'src', 'dest', or any object to inherit from 7 const resTransform = pumpify(reverseStream(), res, { inherits: 'dest' }) 8 // resTransform can be used in place of `res` w/ http-proxy, bc it inherits from `res` 9 // resTransform will reverse google's response body before piping it to res 10 proxy.web(req, resTransform, { 11 target: 'http://google.com' 12 }) 13})
License
MIT
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/3 approved changesets -- 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'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Score
3
/10
Last Scanned on 2025-01-27
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