socks5-node-fetch

socks5 agent for node-fetch

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
socks5-node-fetch
1100.0.45 years ago5 years agoMinified + gzip package size for socks5-node-fetch in KB

Readme

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