1
mirror of https://github.com/jakejarvis/rdapper.git synced 2025-10-18 20:14:27 -04:00
Go to file
2025-09-24 13:06:40 -04:00

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

MIT

Description
Languages
TypeScript 98.9%
JavaScript 1.1%