os-proxy-config
Version:
Access the operating system proxy configuration from Node.js, for all platforms
18 lines (17 loc) • 622 B
TypeScript
export interface ProxyConfig {
/**
* The proxy server URL, in a format ready to be used with
* https://www.npmjs.com/package/proxy-agent.
*
* For example: http://..., socks5://..., pac+http://...
*/
proxyUrl: string;
/**
* A list of no-proxy values, naming the hosts whose traffic should *not* be proxied.
*
* There are many possible formats for the values here, including plain hostnames,
* IPv4 addresses, CIDR ranges, IPv6 addresses, and probably more.
*/
noProxy: string[];
}
export declare function getSystemProxy(): Promise<ProxyConfig | undefined>;