freewhois is a Node.js client designed for retrieving WHOIS information by querying the IANA RDAP DNS database. It provides a free and programmatic way to perform domain lookups. The current stable version is 1.3.8. While a specific release cadence isn't detailed, the TLD list is noted as being updated regularly (last on 11/2/2025), suggesting ongoing maintenance. Its key differentiator is leveraging the IANA RDAP database directly, offering a straightforward, free API for WHOIS queries without relying on external, potentially rate-limited, third-party services. It supports both programmatic use in JavaScript/TypeScript projects and includes a command-line interface for quick lookups, making it versatile for both developers and system administrators.
npm install freewhoisVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to perform a WHOIS lookup for a domain and handle potential errors using the async/await pattern.
Run `npm run update-tlds` in your project directory (if installed locally) or manually update the package if installed globally, to refresh the TLD data.
Implement robust error handling around your `whois` calls and consider retries for transient network failures. Ensure your network configuration allows outbound connections to RDAP servers.
Introduce sensible delays or rate limiting in your application if performing a high volume of lookups. Cache results where appropriate to reduce redundant requests.
For ESM, use `import whois from 'freewhois';`. For CommonJS, use `const whois = require('freewhois');`.Verify the spelling and format of the domain name. Check your network's DNS resolution, and ensure the domain's TLD is recognized and has an active RDAP service.
This is expected behavior for unregistered domains. No fix is needed unless you intended to query a registered domain; in that case, double-check the domain's spelling and existence.
No dependency data recorded yet.