Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
os-proxy-config
Advanced tools
Access the operating system proxy configuration from Node.js, for all platforms
Weekly downloads
Readme
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 121 weekly downloads. As such, os-proxy-config popularity was classified as not popular.
We found that os-proxy-config demonstrated a not healthy version release cadence and project activity because the last version was released 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.