@instaffogmbh/got-tunnels

0.1.3 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @instaffogmbh/got-tunnels

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

6.3 kB

Total Files

7

Last publish

Collaborators

  • bhanu.pv
  • instaffo