
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
os-proxy-config
Advanced tools
Access the operating system proxy configuration from Node.js, for all platforms
Part of HTTP Toolkit: powerful tools for building, testing & debugging HTTP(S)
Access the operating system proxy configuration from Node.js, for all platforms. Use it like so:
import { getSystemProxy } from 'os-proxy-config';
const proxy = await getSystemProxy();
The promise from getSystemProxy
resolves to something like:
{
"proxyUrl": "https://proxy-server:123/",
"noProxy": ["localhost", "example.com"]
}
The proxyUrl is returned in a format suitable for use with proxy-agent: it might be an HTTP or HTTPS URL (for an HTTP proxy), a socks://
or socks5://
URL for SOCKS proxies, or a pac+http://
URL (or similar) with the address of a PAC file for PAC-configured proxies.
If there's no proxy configured, it will resolve to undefined
instead. If something major goes wrong and the settings can't be detected, the promise will be rejected.
This works slightly differently on each platform:
scutil
command-line tool.If you only need one platform, it's probably better to just use one of these approaches directly - this package is designed for use in cross-platform tools.
FAQs
Access the operating system proxy configuration from Node.js, for all platforms
The npm package os-proxy-config receives a total of 7,071 weekly downloads. As such, os-proxy-config popularity was classified as popular.
We found that os-proxy-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.