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

14 lines (13 loc) 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logger = void 0; exports.enableLogging = enableLogging; exports.disableLogging = disableLogging; const roarr_1 = require("roarr"); exports.logger = roarr_1.Roarr.child({ package: 'global-proxy-agent' }); function enableLogging() { process.env.ROARR_LOG = 'true'; } function disableLogging() { process.env.ROARR_LOG = 'false'; }