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 />");
}
});