env-proxy-agent
v0.1.0
Published
Maps environment variables to http.Agent implementations
Downloads
21
Readme
env-proxy-agent
Maps environment variables to http.Agent implementations using proxy-from-env and proxy-agent.
Example
import fetch from 'node-fetch';
import envProxyAgent from 'env-proxy-agent';
const endpoint = 'https://api.github.com/graphql';
fetch(endpoint, {
agent: envProxyAgent(endpoint),
});