1.0.1 • Published 11 months ago

got-proxy v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

got-proxy

proxy agent for got

A proxy agent for got which considers http(s)_proxy and no_proxy env-vars or settings.

usage

npm i got-proxy

proxy settings in code

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')

proxy settings via env vars

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')

license

MIT licensed

1.0.1

11 months ago

1.0.0

11 months ago