freewhois

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
freewhois
1.2.59 months ago4 years agoMinified + gzip package size for freewhois in KB

Readme

freewhois
A node client that uses the iana RDAP DNS database to lookup WHOIS information for free.
TLD List comes from: https://data.iana.org/rdap/dns.json
To see the status of all RDAP TLD's: https://deployment.rdap.org/
TLD's last updated on 09/03/2022

Usage in code

  1. Install via npm i freewhois --save

  1. Code example:

const whois = require("freewhois");

async function whoisLookup() {
    const data = await whois("https://www.google.com");
    console.log(data); // returns as json
}

Usage in CLI

  1. Install via npm i freewhois -g

  1. CLI command:

$ freewhois "https://www.google.com"
$ # returns formatted json

Manually update TLD's

npm run update-tlds

License

MIT