node-proxy-from-env

offers getProxyForUrl to get the proxy URL for a URL
  https://github.com/Rob--W/proxy-from-env#readme
  0
  no reviews



Proxy-from-env is a Node.js package that exports a function (getProxyForUrl) that takes an input URL (a string or url.parse's return value) and returns the desired proxy URL (also a string) based on standard proxy environment variables. If no proxy is set, an empty string is returned.