{"name":"pac-proxy-agent","version":"9.1.0","type":"module","description":"A PAC file proxy `http.Agent` implementation for HTTP","exports":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"repository":{"type":"git","url":"git+https://github.com/TooTallNate/proxy-agents.git","directory":"packages/pac-proxy-agent"},"keywords":["pac","proxy","agent","http","https","socks","request","access"],"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","dependencies":{"debug":"^4.3.4","quickjs-wasi":"^2.2.0","agent-base":"9.0.0","get-uri":"8.0.1","pac-resolver":"9.0.1","https-proxy-agent":"9.1.0","http-proxy-agent":"9.1.0","socks-proxy-agent":"10.1.0"},"devDependencies":{"@types/debug":"^4.1.7","@types/node":"^22.13.0","async-listen":"^3.0.0","socksv5":"github:TooTallNate/socksv5#d937368b28e929396166d77a06d387a4a902bd51","typescript":"^5.1.6","tsconfig":"0.0.0","proxy":"4.1.0"},"engines":{"node":">= 20"},"scripts":{"build":"tsc","test":"vitest","lint":"eslint --ext .ts","pack":"node ../../scripts/pack.mjs"},"_id":"pac-proxy-agent@9.1.0","bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"homepage":"https://github.com/TooTallNate/proxy-agents#readme","_integrity":"sha512-1aU+1mpj3DrQPfo3gh+3Gap3G5x+axnMx1P/y0ZF2ch7kb2meyOCAH8K2k9d27ROsTE7TnAerzxqF9aon2jqnA==","_resolved":"/tmp/84743edd31d6b8a2d556efd8494f38de/pac-proxy-agent-9.1.0.tgz","_from":"file:pac-proxy-agent-9.1.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"11.16.0","dist":{"integrity":"sha512-1aU+1mpj3DrQPfo3gh+3Gap3G5x+axnMx1P/y0ZF2ch7kb2meyOCAH8K2k9d27ROsTE7TnAerzxqF9aon2jqnA==","shasum":"cafd7bb54905de0b6804283cd273eb22028c6abd","tarball":"http://registry-npm.ywwl.com/pac-proxy-agent/download/pac-proxy-agent-9.1.0.tgz","fileCount":7,"unpackedSize":24081,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/pac-proxy-agent@9.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGRtGEB6keqe1sHNAMMqfP6hPg1DgQepccXqV7UsB25rAiEA2fYGiI55UVSVpTNLtbNdjVbGz7JkIDJCWhza0fwEvAk="}],"size":7556,"noattachment":false,"key":"/pac-proxy-agent/-/pac-proxy-agent-9.1.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c9b0e86-053e-492c-8143-fadba9307954"}},"directories":{},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pac-proxy-agent_9.1.0_1780937255164_0.5189115635934063"},"_hasShrinkwrap":false,"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":1780937255283,"_cnpm_publish_time":1780937255283,"dist-tags":{"latest":"9.1.1"}}