Generates a pac URI, according to windows global settings, using WinHTTP API
Just run
npm install windows-pac-resolver
const wpr = require('windows-pac-resolver');
const pacURI = wpr.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
MIT