npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodejs-proxy-checkerv2

v1.2.2

Published

It's simple Proxy Checker, get proxy status, anonymous level, type, time, country

Downloads

18

Readme

NodeJS-Proxy-CheckerV2

It's simple Proxy Checker, get proxy status, anonymous level, type, time, country build with Typescript

  • [x] Proxy anonymous level
  • [x] Proxy country
  • [x] Proxy type (HTTP or SOCKS)
  • [x] Proxy time

Install

npm i nodejs-proxy-checkerv2

How to use ?

const ProxyChecker = require("nodejs-proxy-checkerv2").default;
const instance =new ProxyChecker()
    .addProxiesFromFile("./proxies.txt")
    .addDefaultProxyJudge() // -> optional if you put yours otherwise you have to put it
    .addDefaultProxyInformationProvider(); // -> optional if you put yours otherwise you have to put it

const result = await instance.check(null);

Proxy format: address:port or address:port:username:password

Load proxies with file

const instance =new ProxyChecker()
    .addProxiesFromFile("./proxies.txt")
    .addDefaultProxyJudge() // -> optional if you put yours otherwise you have to put it
    .addDefaultProxyInformationProvider(); // -> optional if you put yours otherwise you have to put it

const result = await instance.check(null);

Load proxys with string array

const proxies = [
  "103.4.112.18:80",
  "103.4.164.205:8080",
  "103.43.42.85:30477",
  "103.43.7.93:30004",
];
const instance =new ProxyChecker()
    .addProxiesFromArray(proxies)
    .addDefaultProxyJudge() // -> optional if you put yours otherwise you have to put it
    .addDefaultProxyInformationProvider(); // -> optional if you put yours otherwise you have to put it

const result = await instance.check(null);

Load only one proxy

const instance =new ProxyChecker()
    .addOnly1Proxy('myproxy')
    .addDefaultProxyJudge() // -> optional if you put yours otherwise you have to put it
    .addDefaultProxyInformationProvider(); // -> optional if you put yours otherwise you have to put it

const result = await instance.check(null);

You can combine the 3

const instance =new ProxyChecker()
    .addOnly1Proxy('myproxy')
    .addProxiesFromFile("./proxies.txt")
    .addProxiesFromArray(proxies)
    .addDefaultProxyJudge() // -> optional if you put yours otherwise you have to put it
    .addDefaultProxyInformationProvider(); // -> optional if you put yours otherwise you have to put it

const result = await instance.check(null);

Options

You can put a callback in order to have the result of each live proxy test so as not to wait for all

const instance =new ProxyChecker()
    .addProxiesFromArray(proxies);

const result = await instance.check((result) => {
   console.log(result); // -> Result of proxy1, proxy2, proxy3, ...
});

You don't have to put addDefaultProxyJudge and addDefaultProxyInformationProvider if you have yours you can add like this

const myInformationProviderLinks = ['https://test.com/', 'https://test2.com/']
const myProxyJudgesLinks = ['https://testJudge.com/', 'https://testJudge2.com/']

const instance =new ProxyChecker()
    .addProxiesFromArray(proxies)
    // .addDefaultProxyJudge()
    // .addDefaultProxyInformationProvider();
    .addProxyInformationProvider(myInformationProviderLinks)
    .addProxyJudge(myProxyJudgesLinks);

Or combine default and yours

const myInformationProviderLinks = ['https://test.com/', 'https://test2.com/']
const myProxyJudgesLinks = ['https://testJudge.com/', 'https://testJudge2.com/']

const instance =new ProxyChecker()
    .addProxiesFromArray(proxies)
    .addProxyInformationProvider(myInformationProviderLinks)
    .addProxyJudge(myProxyJudgesLinks)
    .addDefaultProxyJudge() // -> optional if you put yours otherwise you have to put it
    .addDefaultProxyInformationProvider(); // -> optional if you put yours otherwise you have to put it

You can check the judges proxy link and proxy informations provider link with:

:warning: Links are automatically checked and filtered when called "check()" those that don't work are ignored

const instance =new ProxyChecker()

const result = await instance.checkProxyJudgeLinks(null) //or instance.checkProxyJudgeLinks((val) => console.log(val)) for direct
const result2 = await instance.checkProxyInformationProviderLinks(null) // or instance.checkProxyInformationProviderLinks((val) => console.log(val)) for direct

Results

Dependencies