{"name":"pac-proxy-agent","version":"8.0.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@8.0.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":"1906efa0599f27fc88182bc7bd8bbe1b486a8fe4","tarball":"http://registry-npm.ywwl.com/pac-proxy-agent/download/pac-proxy-agent-8.0.0.tgz","fileCount":7,"integrity":"sha512-HyCoVbyQ/nbVlQ/R6wBu0YXhbG2oAnEK5BQ3xMyj1OffQmU5NoOnpLzgPlKHaobUzz5NK0+AZHby4TdydAEBUA==","signatures":[{"sig":"MEUCIQDFDmbWOkFY6pTXnoTNbwu8VvtdoSCHpYfjZkR76xR0EAIgF9YuULoOcxKAJDwbYYscPswbDTZ3BEG9oiuYKY6cUZw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/pac-proxy-agent@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22924,"size":7203,"noattachment":false,"key":"/pac-proxy-agent/-/pac-proxy-agent-8.0.0.tgz"},"type":"module","_from":"file:pac-proxy-agent-8.0.0.tgz","engines":{"node":">= 14"},"exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"lint":"eslint --ext .ts","pack":"node ../../scripts/pack.mjs","test":"vitest","build":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c9b0e86-053e-492c-8143-fadba9307954"}},"_resolved":"/tmp/956a0aa8e0ddfa27a98166e8748a9871/pac-proxy-agent-8.0.0.tgz","_integrity":"sha512-HyCoVbyQ/nbVlQ/R6wBu0YXhbG2oAnEK5BQ3xMyj1OffQmU5NoOnpLzgPlKHaobUzz5NK0+AZHby4TdydAEBUA==","repository":{"url":"git+https://github.com/TooTallNate/proxy-agents.git","type":"git","directory":"packages/pac-proxy-agent"},"_npmVersion":"11.11.0","description":"A PAC file proxy `http.Agent` implementation for HTTP","directories":{},"_nodeVersion":"20.20.0","dependencies":{"debug":"^4.3.4","get-uri":"7.0.0","agent-base":"8.0.0","pac-resolver":"8.0.0","quickjs-wasi":"^0.0.1","http-proxy-agent":"8.0.0","https-proxy-agent":"8.0.0","socks-proxy-agent":"9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"proxy":"3.0.0","socksv5":"github:TooTallNate/socksv5#fix/dstSock-close-event","tsconfig":"0.0.0","typescript":"^5.1.6","@types/node":"^22.13.0","@types/debug":"^4.1.7","async-listen":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/pac-proxy-agent_8.0.0_1773248336026_0.21503493539826368","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":1773248336163,"_cnpm_publish_time":1773248336163,"dist-tags":{"latest":"9.1.1"}}