You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Normalizes a domain or URL to its registrable domain (eTLD+1).
62
+
- Returns the registrable domain string, or `null` for IPs/invalid input; [options](https://github.com/remusao/tldts/blob/master/packages/tldts-core/src/options.ts) are forwarded to `tldts` (e.g., `allowPrivateDomains`).
@@ -74,9 +79,9 @@ WHOIS requires a raw TCP connection over port 43 via `node:net`, which is not av
74
79
- Prefer RDAP only on edge:
75
80
76
81
```ts
77
-
import { lookupDomain } from"rdapper";
82
+
import { lookup } from"rdapper";
78
83
79
-
const res =awaitlookupDomain("example.com", { rdapOnly: true });
84
+
const res =awaitlookup("example.com", { rdapOnly: true });
80
85
```
81
86
82
87
- If `rdapOnly` is omitted and the code path reaches WHOIS on edge, rdapper throws a clear runtime error advising to run in Node or set `{ rdapOnly: true }`.
0 commit comments