A Node.js module to perform whois lookups
Install the package using NPM:
npm install whois-node
const whois = require("whois-node");
whois.lookup("AS13335").then(console.log); // Outputs the ASN information for Cloudflare
You can customize some options when performing a lookup. Specify these options in a JSON object as the second parameter in the lookup()
function.
{
format: "", // The response output format, can be TEXT or JSON (defaults to JSON)
server: "" // The WHOIS server to use for the request (if none is provided, the library will query IANA for the preferred WHOIS server and then proceed to query the server IANA responded with)
}
If you need help or find an issue in the package, please open an issue on GitHub Issues. If you find a vulnerability, please email me at [email protected].