Search code examples
node.jslinuxmacosproxypac

NPM NODE packages for fetching proxy settings from Mac and Linux


Do we have any NPM NODE packages for fetching proxy settings(Could be manual and Pac) from Mac and Linux?

For windows we have https://www.npmjs.com/package/get-proxy-settings.


Solution

  • For Mac: Use this NPM https://www.npmjs.com/package/macos-system-proxy-settings to get the proxy settings of MAC. Basically, it uses the command scutil --proxy.

    https://dmorgan.info/posts/mac-network-proxy-terminal/