A lightweight Whois Client and Parser written in Javascript.
$ npm install -g whois-api Usage: whois-api [options] <address> [addresses]
Options:
-h, --help output usage information
-V, --version output the version number
-r, --raw Display the raw whois response $ npm install whois-apiimport whois from 'whois-api';
whois.lookup('trello.com', (error, result) => {
console.log(result);
});whois.multiLookup(['trello.com', 'example.com'], (error, result) => {
console.log(result);
});whois.rawLookup('trello.com', (error, result) => {
console.log(result);
});Contributions are welcome.
Whois API is available under the BSD (2-Clause) License.