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
12 lines (11 loc) • 405 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupGlobalProxyAgent = setupGlobalProxyAgent;
const bootstrap_1 = require("../bootstrap");
/**
* Initializes the global proxy agent with environment variables.
* This sets up the global.GLOBAL_AGENT object and intercepts HTTP/HTTPS requests.
*/
function setupGlobalProxyAgent() {
(0, bootstrap_1.bootstrap)();
}
;