ping-proxy
v1.0.0
Published
check HTTP proxies, check socks 4 / 5 proxies, socks proxy checker
Downloads
10
Readme
node-ping-proxy
Simple Proxy Checker
Examples
To install the module: npm install ping-proxy
var pingProxy = require('ping-proxy');
pingProxy(
{
// Proxy Server Host
proxyHost: '5.9.124.48',
// Proxy Server Port
proxyPort: 9378,
// (optional)
// SOCKS Protocol Type
// Valid types: [4, 5] (note 4 also works for 4a)
proxySocks: 5,
// (optional) Test URL
// (default: https://www.google.com)
proxyTestUrl: 'https://kingproxies.com/'
},
// Callback function to be called after the check
function (err, options, statusCode) {
if (err) {
console.log(err);
}
console.log(options, statusCode)
}
);