Parses WhoIs lookup data from a text string to an Array of JSON objects
npm install parse-whois --save
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(JSON.stringify(parser.parseWhoIsData(data)));
});
npm test