Skip to content

SomeTroller77/proxy-checker-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxy-checker-advanced

proxy-checker-advanced is an advanced proxy checker which stores the index of the last working proxy so you could get to the next proxy when you need to without going through the old non working proxies again!

ATTENTION

This module only supports HTTP proxy checking for now, socks5 will be added soon Theres no support for authentication. It will be added soon

Usage

First install the module

npm i proxy-checker-advanced

Example of functions that can be used with this module

const ProxyChecker = require('proxy-checker-advanced');
const proxycheck = new ProxyChecker(["proxy", "here"]); 
// proxies to be checked should be provided in the format like this
// protocol://host:port
// for ex: http://127.0.0.1:8080
(async ()=>{
    console.log(await proxycheck.checkAllProxies()); 
    /* checks all proxies and returns an array of json objects in following format
    {
        protocol:"",
        host:"",
        port:""
    }
    */
    console.log(await proxycheck.checkNextProxy(1));
    /*
        returns an arary of json objects containing the number of proxies requested by
        providing the number as parameter of function with the same format as checkAllProxies method
    */
})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published