New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

pac-proxy-agent

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pac-proxy-agent

A PAC file proxy `http.Agent` implementation for HTTP

Source
npmnpm
Version
9.0.0
Version published
Weekly downloads
31M
62.2%
Maintainers
1
Weekly downloads
 
Created
Source

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);
});

Keywords

pac

FAQs

Package last updated on 01 Apr 2026

Related posts