Gathering detailed insights and metrics for http-proxy-agent
Gathering detailed insights and metrics for http-proxy-agent
Gathering detailed insights and metrics for http-proxy-agent
Gathering detailed insights and metrics for http-proxy-agent
npm install http-proxy-agent
Typescript
Module System
Min. Node Version
Node Version
NPM Version
97.5
Supply Chain
80.2
Quality
76
Maintenance
100
Vulnerability
100
License
pac-proxy-agent@7.2.0
Updated on Feb 18, 2025
agent-base@7.1.3
Updated on Dec 08, 2024
socks-proxy-agent@8.0.5
Updated on Dec 07, 2024
proxy-agent@6.5.0
Updated on Dec 07, 2024
pac-proxy-agent@7.1.0
Updated on Dec 07, 2024
https-proxy-agent@7.0.6
Updated on Dec 07, 2024
TypeScript (93.57%)
JavaScript (6.43%)
Total Downloads
7,762,558,912
Last Day
3,210,640
Last Week
59,411,533
Last Month
255,628,383
Last Year
2,662,252,126
1,060 Stars
298 Commits
258 Forks
19 Watchers
3 Branches
40 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
7.0.2
Package Id
http-proxy-agent@7.0.2
Unpacked Size
22.80 kB
Size
6.14 kB
File Count
8
NPM Version
10.2.4
Node Version
20.11.0
Published on
Feb 15, 2024
Cumulative downloads
Total Downloads
Last Day
-6.1%
3,210,640
Compared to previous day
Last Week
-7.2%
59,411,533
Compared to previous week
Last Month
3.4%
255,628,383
Compared to previous month
Last Year
31.7%
2,662,252,126
Compared to previous year
2
http.Agent
implementation for HTTPThis module provides an http.Agent
implementation that connects to a specified
HTTP or HTTPS proxy server, and can be used with the built-in http
module.
Note: For HTTP proxy usage with the https
module, check out
https-proxy-agent
.
1import * as http from 'http'; 2import { HttpProxyAgent } from 'http-proxy-agent'; 3 4const agent = new HttpProxyAgent('http://168.63.76.32:3128'); 5 6http.get('http://nodejs.org/api/', { agent }, (res) => { 7 console.log('"response" event!', res.headers); 8 res.pipe(process.stdout); 9});
The HttpProxyAgent
class implements an http.Agent
subclass that connects
to the specified "HTTP(s) proxy server" in order to proxy HTTP requests.
The proxy
argument is the URL for the proxy server.
The options
argument accepts the usual http.Agent
constructor options, and
some additional properties:
headers
- Object containing additional headers to send to the proxy server
in each request. This may also be a function that returns a headers object.
NOTE: If your proxy does not strip these headers from the request, they will also be sent to the destination server.
0/10
Summary
Denial of Service in http-proxy-agent
Affected Versions
< 2.1.0
Patched Versions
2.1.0
9.8/10
Summary
Resource Exhaustion Denial of Service in http-proxy-agent
Affected Versions
< 2.1.0
Patched Versions
2.1.0
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 13/23 approved changesets -- score normalized to 5
Reason
9 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
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