Back to Explore

Rob--W/proxy-from-env

GitHub
1 updates · last 90 days1 watchersOpen source

Last release: 2 months ago

proxy-from-env is a Node.js package that provides getProxyForUrl, a function that returns the appropriate proxy URL for a given target URL based on standard proxy environment variables like HTTP_PROXY and NO_PROXY (returning an empty string if no proxy applies). It is useful for making proxy-aware HTTP(S) requests in Node apps, so your code can decide whether to proxy and which proxy to use.

Project status

  • The repository appears actively maintained, with recent tagged updates (v2.0.0 on 2026-02-09 and v2.1.0 on 2026-03-14), and only older changes before that (v1.1.0 in 2020).
  • Update cadence looks evolving but not frequent, roughly a 1 month gap between v2.0.0 and v2.1.0, with earlier years showing a long quiet period.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.1.0

    2 months ago

    v2.1.0 is presented as functionally identical to v2.0.0, with the key claimed change being broader support for older Node.js versions down to Node 10. The code diff shows packaging and module-format changes alongside new Node-version CI coverage, which may affect how consumers resolve the package entrypoint.

    Features
  • v2.0.0

    3 months ago

    v2.0.0 modernizes proxy-from-env by switching from `url.parse` to the WHATWG `URL` constructor and by switching the package from CommonJS to ESM. It also removes support for `npm_config_*` proxy and `npm_config_no_proxy` style environment variables, restoring the earlier behavior.

    Breaking
  • v1.1.0

    8/14/2020

    This release adds functionality to fetch proxy configuration from NPM when available. This may improve how proxy settings are discovered and applied during setup without manual configuration.

    Features