jase
5/4/2018 - 4:55 AM

Retrieve and Parse WHOIS Data

This sample demonstrates the use of the WHOIS and Parse-WHOIS Node Modules.

var whois = require("whois");
var parser = require("parse-whois");

whois.lookup("twitter.com", function(err, data) {
    var parsedData = parser.parseWhoIsData(data);

    for(var record of parsedData) {
        document.writeln(record.attribute + ": " + record.value + "<br />");
    }
});