proxy-check

1.0.8 • Public • Published

Check proxy for NodeJS

const proxy_check = require('proxy-check');

const proxy = {
  host: '54.82.74.24',
  port: 5557,
  proxyAuth: 'y0adXjeO:pAzAHCr4'
};
// or
// const proxy = 'y0adXjeO:pAzAHCr4@54.82.74.24:5557';

proxy_check(proxy).then(r => {
  console.log(r); // true
}).catch(e => {
  console.error(e); // ECONNRESET
});

Install your simple proxy-server: https://github.com/zamanuhina/install-proxy-one-line

Readme

Keywords

Package Sidebar

Install

npm i proxy-check

Weekly Downloads

16,877

Version

1.0.8

License

MIT

Unpacked Size

3.23 kB

Total Files

3

Last publish

Collaborators

  • zamanuhina