
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
socks5-http-client
Advanced tools
SOCKS v5 HTTP client implementation in JavaScript for Node.js.
var shttp = require('socks5-http-client');
shttp.get('http://www.google.com/', function(res) {
res.setEncoding('utf8');
res.on('readable', function() {
console.log(res.read()); // Log response to console.
});
});
URLs are parsed using url.parse. You may also pass an options hash as the first argument to get or request.
Specify the socksHost and socksPort options if your SOCKS server isn't running on localhost:1080. Tor runs its SOCKS server on port 9050 by default, for example.
Specify a username and password using socksUsername and socksPassword.
Works great for making HTTPS requests through Tor.
Make sure a Tor server is running locally and run node example/tor http://en.wikipedia.org/wiki/SOCKS to test.
To use with Request, just pass a reference to the Agent constructor.
var Agent = require('socks5-http-client/lib/Agent');
request({
url: 'http://en.wikipedia.org/wiki/SOCKS',
agentClass: Agent,
agentOptions: {
socksHost: 'my-tor-proxy-host', // Defaults to 'localhost'.
socksPort: 9050 // Defaults to 1080.
}
}, function(err, res) {
console.log(err || res.body);
});
This client only provides support for making HTTP requests. See socks5-https-client for an HTTPS implementation.
Copyright © 2013 Matthew Caruana Galizia, licensed under an MIT license.
FAQs
SOCKS v5 HTTP client.
The npm package socks5-http-client receives a total of 10,817 weekly downloads. As such, socks5-http-client popularity was classified as popular.
We found that socks5-http-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.