UNPKG

global-proxy-agent

Version:

A universal proxy agent for Node.js that combines environment-variable-based proxy resolution with smart protocol-aware agent selection. Automatically supports HTTP, HTTPS, SOCKS, and PAC proxies using a modular, runtime-configurable approach. It also pro

8 lines (7 loc) 269 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveProxyForUrl = resolveProxyForUrl; const proxy_from_env_1 = require("proxy-from-env"); function resolveProxyForUrl(url) { return (0, proxy_from_env_1.getProxyForUrl)(url); }