Skip to content

Node module to generates a pac URI, according to windows global settings, using WinHTTP API

License

Notifications You must be signed in to change notification settings

mceSystems/node-windows-pac-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node module to generates a pac URI, according to windows global settings, using WinHTTP API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •