checkhost-wrapper
v1.0.0
Published
wrapper for https://check-host.net
Downloads
1
Readme
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);