@redocly/cli
Version:
[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g
9 lines • 316 B
JavaScript
import { HttpsProxyAgent } from 'https-proxy-agent';
export function getProxyUrl() {
return process.env.HTTPS_PROXY || process.env.HTTP_PROXY;
}
export function getProxyAgent() {
const proxy = getProxyUrl();
return proxy ? new HttpsProxyAgent(proxy) : undefined;
}
//# sourceMappingURL=proxy-agent.js.map