Skip to content

Maps environment variables to http.Agent implementations

Notifications You must be signed in to change notification settings

jackjocross/env-proxy-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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),
});

About

Maps environment variables to http.Agent implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published