A thin wrapper around node-fetch that adds SOCKS5 proxy support via a custom agent. Version 0.0.4, last updated in 2018. It provides a drop-in replacement for node-fetch that routes HTTP/HTTPS requests through a SOCKS5 proxy. Key differentiator: automatic protocol detection for http and https. Lightweight with no additional runtime dependencies beyond node-fetch. Limited to Node.js; no browser support. Stable but minimal maintenance.
npm install socks5-node-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing socks5-node-fetch, configuring it with a SOCKS5 proxy, and making an HTTPS request.
Run `npm install node-fetch socks5-node-fetch`
Use a browser-compatible fetch with SOCKS5 proxy support like 'socks-proxy-agent'.
Consider using 'socks-proxy-agent' directly with node-fetch for up-to-date package.
Run `npm install socks5-node-fetch`
Use `const wrappedFetch = require('socks5-node-fetch')` or `import wrappedFetch from 'socks5-node-fetch'`Ensure a SOCKS5 proxy is running at the specified host and port, or adjust the configuration.