Thin wrapper around node-fetch that transparently uses HTTP_PROXY/HTTPS_PROXY environment variables for proxy support. Version 0.1.6, stable but low update cadence (last update 2019). Key differentiator: drop-in replacement for node-fetch that requires no code changes — just set proxy env vars. Unlike node-fetch's native proxy options, it uses proxy-agent under the hood for comprehensive protocol support (http, https, socks).
npm install node-fetch-with-proxyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets proxy via environment variable and performs a GET request to httpbin.
Set NO_PROXY env var (comma-separated list of hostnames) to exclude from proxy.
Set env vars before importing the package.
Use node-fetch v2 or check compatibility; consider using native fetch (Node 18+).
Consider native fetch or alternatives like undici with proxy support.
Verify HTTP_PROXY value is correct and DNS resolves the proxy host.
Use 'import fetch from 'node-fetch-with-proxy'' (no curly braces).
Add 'type': 'module' in package.json or use require().