Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    cawpublic

    caw Build Status

    Construct HTTP/HTTPS agents for tunneling proxies

    Install

    $ npm install caw
    

    Usage

    const caw = require('caw');
    const got = require('got');
     
    got('todomvc.com', {
        agent: caw()
    }, () => {});

    API

    caw([proxy], [options])

    proxy

    Type: string

    Proxy URL. If not set, it'll try getting it using get-proxy.

    options

    Type: Object

    Besides the options below, you can pass in options allowed in tunnel-agent.

    protocol

    Type: string
    Default: http

    Endpoint protocol.

    License

    MIT © Kevin Mårtensson

    install

    npm i caw

    Downloadsweekly downloads

    672,482

    version

    2.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar