whoiser is a WHOIS client for Node.js that helps with querying WHOIS servers for TLDs, domain names, AS numbers and IPs.
Has support for auto-discovery WHOIS servers for TLDs and IPs allocators, making it easy to get WHOIS info with a single call like whoiser('google.com') or whoiser('1.1.1.1'). Applies minimal parsing to results, returning same data format from different WHOIS servers.
> [!CAUTION] > v2 is under active development! The code in main branch is for v2. Breaking changes: > - ESM only > - removed whoiser() method, use individual whoisDomain, whoisTld, whoisIp, whoisAsn > - removed allTlds() > > Until v2 dev is complete, install latest v1. The docs below are for v1
$3
* Returns WHOIS info for any internet address * Requires zero config, but configurable when needed * Recognises queries and routes the request to correct server * Minimal parsing to provide consistent results across WHOIS servers * Uses WHOIS servers from IANA, if not provided * Discover all available TLDs
ā See it in action here https://dmns.app
Getting Started
#### Installation
``npm i whoiser`
#### Usage The library has a simple API. Use whoiser(query) with any query you would want OR use specific functions with options like whoiser.domain(domain, {options}), whoiser.ip(ip, {options})
#### Example `js const whoiser = require('whoiser')
- whoiser(query, options) - Get WHOIS data for any internet address - whoiser.domain(domain, options) - Get parsed WHOIS data for a domain - whoiser.tld(tld, options) - Get WHOIS data for a TLD - whoiser.asn(asn, options) - Get WHOIS data for an AS number - whoiser.ip(ip, options) - Get WHOIS data for a IP - whoiser.allTlds - Returns a list of all TLDs, downloaded from IANA - whoiser.query(options) - Query a WHOIS server for data
$3
Get WHOIS info for domains.whoiser.domain(domain, options): Promise