pac-proxy-agent (7.2.0)
Published 2026-02-24 14:02:20 +00:00 by atheaadmin
Installation
registry=npm install pac-proxy-agent@7.2.0"pac-proxy-agent": "7.2.0"About this package
pac-proxy-agent
A PAC file proxy http.Agent implementation for HTTP and HTTPS
This module provides an http.Agent implementation that retreives the specified
PAC proxy file and uses it to resolve which HTTP, HTTPS, or
SOCKS proxy, or if a direct connection should be used to connect to the
HTTP endpoint.
It is designed to be be used with the built-in http and https modules.
Example
import * as http from 'http';
import { PacProxyAgent } from 'pac-proxy-agent';
const agent = new PacProxyAgent('pac+https://cloudup.com/ceGH2yZ0Bjp+');
http.get('http://nodejs.org/api/', { agent }, (res) => {
console.log('"response" event!', res.headers);
res.pipe(process.stdout);
});
Dependencies
Dependencies
| ID | Version |
|---|---|
| @tootallnate/quickjs-emscripten | ^0.23.0 |
| agent-base | ^7.1.2 |
| debug | ^4.3.4 |
| get-uri | ^6.0.1 |
| http-proxy-agent | ^7.0.0 |
| https-proxy-agent | ^7.0.6 |
| pac-resolver | ^7.0.1 |
| socks-proxy-agent | ^8.0.5 |
Development Dependencies
| ID | Version |
|---|---|
| @types/debug | ^4.1.7 |
| @types/jest | ^29.5.1 |
| @types/node | ^14.18.45 |
| async-listen | ^3.0.0 |
| 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 |
Keywords
pac
proxy
agent
http
https
socks
request
access
Details
Assets (1)
Versions (2)
View all
pac-proxy-agent-7.2.0.tgz
7.7 KiB