whois-rdap-node
v1.0.5
Published
whois and rdap lookup for node applications
Maintainers
Readme
who-is-lookup 🌐
A modern, high-performance, dependency-free Node.js package designed to query domain, IP address, and ASN registration data using legacy WHOIS protocols and modern RESTful RDAP gateways.
🚀 Features
- Zero Dependencies: Pure vanilla Node.js architecture for blazing-fast execution.
- Dual Protocol Support: Handles legacy port-43 WHOIS text streams and RESTful JSON-based RDAP lookups.
- Granular RDAP Engines: Dedicated lookup wrappers for
domain,asn,ipv4, andipv6.
📦 Installation
npm install whois-rdap-node🛠️ Usage Example
Here is a comprehensive script demonstrating how to import and orchestrate sequential queries across both the RDAP and WHOIS submodules.
import { rdap } from "whois-rdap-node";
import { whois } from "whois-rdap-node";
(async function main() {
// 1. RDAP Domain Queries
await rdap.domain("google.com");
await rdap.domain("dovene.org");
// 2. RDAP Autonomous System Number (ASN) Queries
await rdap.asn(52224);
await rdap.asn(262144);
await rdap.asn(7467);
await rdap.asn(2043);
await rdap.asn(144698);
// 3. RDAP Internet Protocol IP Queries (IPv4 / IPv6)
await rdap.ipv4("8.8.8.8");
await rdap.ipv4("202.12.29.1");
await rdap.ipv6("2001:4860:4860::8888");
await rdap.ipv6("2606:4700:4700::1111");
await rdap.ipv6("2a00:1450:4009:820::200e");
await rdap.ipv6("2001:dc0::1");
// 4. Legacy Port-43 Fallback WHOIS Query
await whois.lookup("dovene.org");
})();📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
