UNPKG

freewhois

Version:

A node client that uses the iana RDAP DNS database to lookup WHOIS information for free

13 lines (9 loc) 314 B
#!/usr/bin/env node const whois = require("../"); const args = process.argv.splice(2); const domain = args[0]; if (domain) { whois(domain).then(res => console.dir(res, {depth: null})).catch(err => console.log(err)) } else { console.log("No domain entered, syntax is 'freewhois https://example.com`"); }