UNPKG

get-proxy-settings

Version:

Retrieve proxy settings specified by the system

12 lines (11 loc) 658 B
import { ProxyCredentials, ProxySettings } from "./proxy-settings"; export declare function getProxySettings(): Promise<ProxySettings | null>; export declare function getAndTestProxySettings(login?: () => Promise<ProxyCredentials>): Promise<ProxySettings>; export default getProxySettings; export declare function getProxyWindows(): Promise<ProxySettings | null>; /** * Return proxy settings defined in the environment. * This can be either as HTTP(s)_PROXY environment variable or in the npm config */ export declare function getEnvProxy(): ProxySettings; export declare function parseWindowsProxySetting(proxySetting: string): ProxySettings;