pac-proxy-agent
A PAC file proxy `http.Agent` implementation for HTTP
Last updated 11 days ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install pac-proxy-agent 
SYNC missed versions from official npm registry.

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

Current Tags

  • 9.1.1                                ...           latest (11 days ago)

31 Versions

  • 9.1.1                                ...           11 days ago
  • 9.1.0                                ...           6 months ago
  • 9.0.1                                ...           8 months ago
  • 9.0.0                                ...           8 months ago
  • 8.0.0                                ...           9 months ago
  • 7.2.0                                ...           2 years ago
  • 7.1.0                                ...           2 years ago
  • 7.0.2                                ...           2 years ago
  • 7.0.1                                ...           3 years ago
  • 7.0.0                                ...           3 years ago
  • 6.0.4                                ...           3 years ago
  • 6.0.3                                ...           4 years ago
  • 6.0.2                                ...           4 years ago
  • 6.0.1                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.0.0                                ...           5 years ago
  • 4.1.0                                ...           7 years ago
  • 4.0.0                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           9 years ago
  • 2.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           11 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 83
Today 0
This Week 1
This Month 37
Last Day 0
Last Week 0
Last Month 4
Dependencies (8)
Dev Dependencies (7)

© 2010 - cnpmjs.org x YWFE | Home | YWFE