mirror of
https://github.com/jakejarvis/rdapper.git
synced 2025-10-18 20:14:27 -04:00
3429c70bd72cef7d58318c4438502dd33366738c
rdapper
🤵 Fetch and parse domain registration data using RDAP and falling back to WHOIS.
Install
npm install rdapper
Usage
import { lookupDomain } from "rdapper";
const { ok, record, error } = await lookupDomain("example.com", {
timeoutMs: 15000,
followWhoisReferral: true,
});
if (!ok) throw new Error(error);
console.log(record);
Notes
- Uses IANA RDAP bootstrap and RDAP JSON when available; falls back to WHOIS.
- Standardized output regardless of source.
- No external HTTP client deps; relies on global fetch. WHOIS uses TCP 43.
License
Description
🎩 RDAP/WHOIS fetcher, parser, and normalizer for Node
https://www.npmjs.com/package/rdapper
Readme
MIT
382 KiB
Languages
TypeScript
98.9%
JavaScript
1.1%