Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

https-proxy-agent 0.3.4

An HTTP(s) proxy `http.Agent` implementation for HTTPS
Package summary
Share
9
issues
4
critical severity
vulnerability
2
license
2
1
high severity
vulnerability
1
3
moderate severity
vulnerability
3
1
low severity
vulnerability
1
2
licenses
2
MIT
2
N/A
Package created
9 Jul 2013
Version published
9 Apr 2014
Maintainers
1
Total deps
4
Direct deps
3
License
MIT

Issues

9

4 critical severity issues

critical
Recommendation: Upgrade to version 2.2.0 or later
via: https-proxy-agent@0.3.4
Recommendation: Upgrade to version 2.2.0 or later
via: https-proxy-agent@0.3.4
Recommendation: Check the package code and files for license information
via: debug@0.8.1
Recommendation: Check the package code and files for license information
via: extend@1.2.1
Collapse
Expand

1 high severity issue

high
Recommendation: Upgrade to version 2.6.9 or later
via: debug@0.8.1
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Upgrade to version 2.2.3 or later
via: https-proxy-agent@0.3.4
Recommendation: Upgrade to version 2.0.2 or later
via: extend@1.2.1
Recommendation: Upgrade to version 2.2.3 or later
via: https-proxy-agent@0.3.4
Collapse
Expand

1 low severity issue

low
Recommendation: Upgrade to version 2.6.9 or later
via: debug@0.8.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
agent-base@1.0.2
https-proxy-agent@0.3.4

N/A

N/A
2 Packages, Including:
debug@0.8.1
extend@1.2.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of https-proxy-agent 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
agent-base1.0.25.68 kBMIT
prod
debug0.8.13.99 kBUNKNOWN
prod
1
1
1
extend1.2.12.29 kBUNKNOWN
prod
1
1

Visualizations

Frequently Asked Questions

What does https-proxy-agent do?

The "https-proxy-agent" is an npm package that provides an "http.Agent" implementation to connect through a specified HTTP or HTTPS proxy server. This package is compatible and works welter with the built-in "https" module. Its core advantage is the implementation of the CONNECT HTTP method, which allows setting up of a direct TCP connection to the destination server via an intermediary "proxy" server. The method's versatility makes it compatible with other protocols using similar methods to establish connections over proxies, which includes WebSockets.

How do you use https-proxy-agent?

Using "https-proxy-agent" is fairly straightforward. Below is an example of how you can use it with the "https" module:

import * as https from 'https';
import { HttpsProxyAgent } from 'https-proxy-agent';

const agent = new HttpsProxyAgent('http://168.63.76.32:3128');

https.get('https://example.com', { agent }, (res) => {
  console.log('"response" event!', res.headers);
  res.pipe(process.stdout);
});

And here's an example of using it for WebSocket connections:

import WebSocket from 'ws';
import { HttpsProxyAgent } from 'https-proxy-agent';

const agent = new HttpsProxyAgent('http://168.63.76.32:3128');
const socket = new WebSocket('ws://echo.websocket.org', { agent });

socket.on('open', function () {
  console.log('"open" event!');
  socket.send('hello world');
});

socket.on('message', function (data, flags) {
  console.log('"message" event! %j %j', data, flags);
  socket.close();
});

Where are the https-proxy-agent docs?

For more comprehensive information on the "https-proxy-agent", refer to the package's documentation available on its GitHub repository. The URL for the GitHub repository is https://github.com/TooTallNate/proxy-agents. Details about the "HttpsProxyAgent" class, its constructor, accepted arguments, and additional properties of the "options" argument can be found in the API section of the readme file in the repository. Keep up with the repository for any updates or changes in functionality.