Binary package “node-proxy-from-env” in ubuntu mantic

offers getProxyForUrl to get the proxy URL for a URL

 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.