Socket
Socket
Sign inDemoInstall

windows-pac-resolver

Package Overview
Dependencies
102
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    windows-pac-resolver

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


Version published
Weekly downloads
137
decreased by-17.47%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 23 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc