1.0.0 • Published 2 years ago

checkhost-wrapper v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

check-host wrapper

A fast, lightweight, wrapper for https://check-host.net

usage

supports ping, http, tcp, udp, dns, info, and results as check type info and results only need the first argument

import ch from "./index.js";

//ping, http, tcp, udp, and dns use the same format
const ipInfo = await ch.ping("1.1.1.1",{ //only ip is needed
    max_nodes: 1, //optional
    nodes: ["ca1.node.check-host.net"] //optional
});

console.log(ipInfo);