Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
tunnel-agent
Advanced tools
HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.
The tunnel-agent npm package is used to implement HTTP/HTTPS tunneling. It allows you to proxy requests through a tunneling agent, which can be useful when you need to work with proxies or bypass network restrictions.
HTTP Tunneling
This code sample demonstrates how to create an HTTP tunneling agent to proxy requests through a local proxy server running on port 8080.
const tunnel = require('tunnel-agent');
const https = require('https');
let tunnelingAgent = tunnel.httpOverHttp({
proxy: {
host: 'localhost',
port: 8080
}
});
const options = {
host: 'example.com',
port: 80,
agent: tunnelingAgent
};
https.get(options, (res) => {
console.log('Response:', res.statusCode);
});
HTTPS Tunneling
This code sample demonstrates how to create an HTTPS tunneling agent to proxy HTTPS requests through a local HTTPS proxy server running on port 8080.
const tunnel = require('tunnel-agent');
const https = require('https');
let tunnelingAgent = tunnel.httpsOverHttps({
proxy: {
host: 'localhost',
port: 8080
}
});
const options = {
host: 'example.com',
port: 443,
agent: tunnelingAgent
};
https.get(options, (res) => {
console.log('Response:', res.statusCode);
});
This package provides an HTTP agent to proxy requests. It is similar to tunnel-agent but focuses on HTTP proxying and does not support HTTPS tunneling.
This package is an HTTP(s) proxy agent for node.js to proxy HTTPS requests. It is similar to tunnel-agent's functionality for HTTPS tunneling.
This package provides an agent capable of connecting through SOCKS proxies. It is similar to tunnel-agent but specifically designed for SOCKS proxy connections.
HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.
FAQs
HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.
The npm package tunnel-agent receives a total of 16,920,565 weekly downloads. As such, tunnel-agent popularity was classified as popular.
We found that tunnel-agent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.