0.0.4 • Published 6 years ago

socks5-node-fetch v0.0.4

Weekly downloads
94
License
MIT
Repository
github
Last release
6 years ago

SOCKS5 node-fetch client

SOCKS v5 HTTP(s) client implementation in node-fetch

install

npm install socks5-node-fetch --save

Usage

const wrappedFetch = require('socks5-node-fetch')

const fetch = wrappedFetch({
    socksHost: 'localhost',
    socksPort: '1080'
})

// fetch(url, options)

fetch('https://google.com', {
    method: 'GET',
    ...
}).then(res => {

})

The socks5-node-fetch automatically detects protocol so both http and https are supported.

See node-fetch for more options

License

MIT