parse-whois
v1.0.0
Published
A small module for parsing the output string of a WhoIs lookup into an Array of JSON objects
Downloads
263
Readme
parse-whois
Parses WhoIs lookup data from a text string to an Array of JSON objects
Installation
npm install parse-whois --save
Usage
data is the raw output from a WhoIs lookup
var parser = require('parse-whois');
var whois = require('node-whois');
whois.lookup('github.com', function(err, data){
if (err) throw err;
console.log(data);
console.log(parser.parseWhoIsData(data));
});
Test
npm test