Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 687 Bytes

Readme.md

File metadata and controls

25 lines (16 loc) · 687 Bytes

Generates a pac URI, according to windows global settings, using WinHTTP API

Installation

Just run

npm install windows-pac-resolver

API

const wpr = require('windows-pac-resolver');
const pacURI = wpr.getPACUri();

getPACUri()

Returns a "pac+://..." URI, with the PAC file configured for the system. Returns undefined if no proxy is configured.

If a proxy is manually configured, it will generate a PAC file on-the-fly and return a data uri with the proxy information.

Can be used with modules like proxy-agent or pac-proxy-agent

License

MIT