1.1.1 • Published 4 years ago

@devhigley/test-proxy v1.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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' }
1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago