proxy agent for got
A proxy agent for got which considers
http(s)_proxy and no_proxy env-vars or settings.
npm i got-proxy
import { gotProxy } from 'got-proxy'
const got = gotProxy({
proxy: 'http://my-http.proxy',
noProxy: 'localhost,.my.domain'
})
const res = await got('https://httpbin.org/anything')http_proxy=http://my-http.proxy
no_proxy=localhost,.my.domain
import { gotProxy } from 'got-proxy'
const got = gotProxy()
const res = await got('https://httpbin.org/anything')MIT licensed