ping-proxy

1.0.0 • Public • Published

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

License

MIT license.

Readme

Keywords

Package Sidebar

Install

npm i ping-proxy

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kyungw00k