Skip to content

DevHigley/test-proxy

Repository files navigation

test-proxy Build Status

Description

test-proxy is a lightweight Node.js http(s) proxy testing library

What it does:

  • tests http(s) proxies
  • checks latency (ms)
  • checks proxy anonymity (boolean)
  • checks support for specific hostname
  • supports proxy authentication
  • supports optional connection timeout
  • supports ip_address environment variable for fewer requests

Installation

npm install @devhigley/test-proxy
yarn add @devhigley/test-proxy

Usage

const testProxy = require("@devhigley/test-proxy");

const proxy = { host: "89.187.177.91", port: 80 };

testProxy(proxy).then((result) => console.log(result));

Result:

on success:

{
  type: "http",
  latency: 1337,
  anonymous: true
}

on failure:

{ error: '503 Service Unavailable' }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published