{"name":"pac-proxy-agent","version":"7.2.0","keywords":["pac","proxy","agent","http","https","socks","request","access"],"author":{"url":"http://n8.io/","name":"Nathan Rajlich","email":"nathan@tootallnate.net"},"license":"MIT","_id":"pac-proxy-agent@7.2.0","maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"homepage":"https://github.com/TooTallNate/proxy-agents#readme","bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"dist":{"shasum":"9cfaf33ff25da36f6147a20844230ec92c06e5df","tarball":"http://registry-npm.ywwl.com/pac-proxy-agent/download/pac-proxy-agent-7.2.0.tgz","fileCount":8,"integrity":"sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==","signatures":[{"sig":"MEYCIQCemRFUMqM7LSE7RjUx4SEY6St+kdstyBtF+1sHHR/aJgIhAPb0lAxWZfjsNkGEoCaReu6Zrvavj9qFOX3qsEa2n0gM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33599,"size":7840,"noattachment":false,"key":"/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz"},"main":"./dist/index.js","_from":"file:pac-proxy-agent-7.2.0.tgz","types":"./dist/index.d.ts","engines":{"node":">= 14"},"scripts":{"lint":"eslint --ext .ts","pack":"node ../../scripts/pack.mjs","test":"jest --env node --verbose --bail","build":"tsc"},"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"_resolved":"/tmp/87c944cead38116ae55f1b4de6f78ace/pac-proxy-agent-7.2.0.tgz","_integrity":"sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==","repository":{"url":"git+https://github.com/TooTallNate/proxy-agents.git","type":"git","directory":"packages/pac-proxy-agent"},"_npmVersion":"10.8.2","description":"A PAC file proxy `http.Agent` implementation for HTTP","directories":{},"_nodeVersion":"20.18.2","dependencies":{"debug":"^4.3.4","get-uri":"^6.0.1","agent-base":"^7.1.2","pac-resolver":"^7.0.1","http-proxy-agent":"^7.0.0","https-proxy-agent":"^7.0.6","socks-proxy-agent":"^8.0.5","@tootallnate/quickjs-emscripten":"^0.23.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","proxy":"2.2.0","socksv5":"0.0.6","ts-jest":"^29.1.0","tsconfig":"0.0.0","typescript":"^5.0.4","@types/jest":"^29.5.1","@types/node":"^14.18.45","@types/debug":"^4.1.7","async-listen":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/pac-proxy-agent_7.2.0_1739907512991_0.42895927841494474","host":"s3://npm-registry-packages-npm-production"},"readme":"pac-proxy-agent\n===============\n### A [PAC file][pac-wikipedia] proxy `http.Agent` implementation for HTTP and HTTPS\n\nThis module provides an `http.Agent` implementation that retreives the specified\n[PAC proxy file][pac-wikipedia] and uses it to resolve which HTTP, HTTPS, or\nSOCKS proxy, or if a direct connection should be used to connect to the\nHTTP endpoint.\n\nIt is designed to be be used with the built-in `http` and `https` modules.\n\nExample\n-------\n\n```ts\nimport * as http from 'http';\nimport { PacProxyAgent } from 'pac-proxy-agent';\n\nconst agent = new PacProxyAgent('pac+https://cloudup.com/ceGH2yZ0Bjp+');\n\nhttp.get('http://nodejs.org/api/', { agent }, (res) => {\n  console.log('\"response\" event!', res.headers);\n  res.pipe(process.stdout);\n});\n```\n\n[pac-wikipedia]: http://wikipedia.org/wiki/Proxy_auto-config\n","publish_time":1739907513261,"_cnpm_publish_time":1739907513261,"dist-tags":{"latest":"9.1.1"}}