0.1.3 • Published 5 years ago

@instaffogmbh/got-tunnels v0.1.3

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
5 years ago

@instaffogmbh/got-tunnels

Simplified proxy setup for got

API

This module exports one function:

tuna = makeTunnelAgents(proxySpec)

Returns a value suitable for got's agent option to make it use…

  • no proxy if proxySpec === 'direct',
  • or the specified proxy if proxySpec is a string that @instaffogmbh/parse-proxy-url-string understands,
  • or the specified proxy if proxySpec is an object with suitable host (or hostname) and port properties.

 

License

MIT

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago