Skip to content

kyungw00k/node-ping-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-ping-proxy npm version Coverage Status

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)
  }
);

License

MIT license.

About

📦 Simple Proxy Checker 👿

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published