This library provides a SOCKSv5 client specifically for making HTTPS requests within Node.js environments. It enables routing secure web traffic through a SOCKSv5 proxy, such as a local Tor instance. The package, currently at version 1.2.1, saw its last release in 2013 and is not actively maintained, which raises concerns about its compatibility with modern Node.js versions, updated security protocols, and potential vulnerabilities. It differentiates itself by focusing exclusively on HTTPS, requiring the separate `socks5-http-client` package for plain HTTP requests. Its primary utility has been for applications requiring anonymous or proxied HTTPS communication, though its abandoned status means developers should exercise caution. Due to its inactivity, there is no regular release cadence.
npm install socks5-https-clientVerified import paths — ran on the pinned version, not inferred.
Demonstrates making an HTTPS GET request through a SOCKSv5 proxy using the `shttps.get` method, with basic error handling.
Use `const someVar = require('package')` syntax. If your project is pure ESM, you may need a wrapper or alternative package.For new projects, consider modern, actively maintained SOCKS proxy client libraries, or use a reverse proxy that handles SOCKS for you. For existing projects, thoroughly test against your target Node.js version.
If you need both HTTP and HTTPS, you must import and use `socks5-http-client` for HTTP and `socks5-https-client` for HTTPS.
Verify compatibility with your target Node.js version through extensive testing. Be prepared for potential TLS handshake errors or deprecated API warnings on very new Node.js versions.
Ensure your file is treated as CommonJS (e.g., `.js` file without `"type": "module"` in `package.json`, or explicitly `.cjs` extension) or use a modern, ESM-compatible SOCKS proxy client.
This package exports a default CommonJS module. Use `const shttps = require('socks5-https-client');` instead of `import shttps from 'socks5-https-client';`.For testing or specific scenarios, set `rejectUnauthorized: false` in the options. For production, ensure the SOCKS proxy is correctly configured or the target server has a trusted certificate.
No dependency data recorded yet.