windows-pac-resolver
v3.0.0
Published
Generates a pac URI, according to windows global settings, using WinHTTP API
Downloads
719
Readme
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