rdapper 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +181 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +109 -0
- package/dist/lib/async.d.ts +2 -0
- package/dist/lib/async.js +18 -0
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.js +1 -0
- package/dist/lib/dates.d.ts +1 -0
- package/dist/lib/dates.js +84 -0
- package/dist/lib/domain.d.ts +8 -0
- package/dist/lib/domain.js +64 -0
- package/dist/lib/text.d.ts +6 -0
- package/dist/lib/text.js +77 -0
- package/dist/rdap/bootstrap.d.ts +6 -0
- package/dist/rdap/bootstrap.js +30 -0
- package/dist/rdap/client.d.ts +9 -0
- package/dist/rdap/client.js +21 -0
- package/dist/rdap/normalize.d.ts +6 -0
- package/dist/rdap/normalize.js +214 -0
- package/dist/types.d.ts +83 -0
- package/dist/types.js +1 -0
- package/dist/whois/client.d.ts +10 -0
- package/dist/whois/client.js +46 -0
- package/dist/whois/discovery.d.ts +9 -0
- package/dist/whois/discovery.js +50 -0
- package/dist/whois/normalize.d.ts +6 -0
- package/dist/whois/normalize.js +214 -0
- package/dist/whois/servers.d.ts +1 -0
- package/dist/whois/servers.js +64 -0
- package/package.json +56 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Curated authoritative WHOIS servers by TLD (exceptions to default/referral logic)
|
|
2
|
+
// Source of truth checked against IANA delegation records; prefer RDAP first.
|
|
3
|
+
export const WHOIS_TLD_EXCEPTIONS = {
|
|
4
|
+
// gTLDs (port-43 still available at registry)
|
|
5
|
+
com: "whois.verisign-grs.com",
|
|
6
|
+
net: "whois.verisign-grs.com",
|
|
7
|
+
org: "whois.publicinterestregistry.org", // PIR
|
|
8
|
+
biz: "whois.nic.biz",
|
|
9
|
+
name: "whois.nic.name",
|
|
10
|
+
edu: "whois.educause.edu",
|
|
11
|
+
gov: "whois.nic.gov", // was whois.dotgov.gov
|
|
12
|
+
// ccTLDs & other TLDs with working port-43 WHOIS
|
|
13
|
+
de: "whois.denic.de",
|
|
14
|
+
jp: "whois.jprs.jp",
|
|
15
|
+
fr: "whois.nic.fr",
|
|
16
|
+
it: "whois.nic.it",
|
|
17
|
+
pl: "whois.dns.pl",
|
|
18
|
+
nl: "whois.domain-registry.nl",
|
|
19
|
+
be: "whois.dns.be",
|
|
20
|
+
se: "whois.iis.se",
|
|
21
|
+
no: "whois.norid.no",
|
|
22
|
+
fi: "whois.fi",
|
|
23
|
+
cz: "whois.nic.cz",
|
|
24
|
+
es: "whois.nic.es",
|
|
25
|
+
br: "whois.registro.br",
|
|
26
|
+
ca: "whois.cira.ca",
|
|
27
|
+
dk: "whois.punktum.dk", // was whois.dk-hostmaster.dk
|
|
28
|
+
hk: "whois.hkirc.hk",
|
|
29
|
+
sg: "whois.sgnic.sg",
|
|
30
|
+
in: "whois.nixiregistry.in", // was whois.registry.in
|
|
31
|
+
nz: "whois.irs.net.nz", // was whois.srs.net.nz
|
|
32
|
+
ch: "whois.nic.ch",
|
|
33
|
+
li: "whois.nic.li",
|
|
34
|
+
io: "whois.nic.io",
|
|
35
|
+
ai: "whois.nic.ai",
|
|
36
|
+
ru: "whois.tcinet.ru",
|
|
37
|
+
su: "whois.tcinet.ru",
|
|
38
|
+
us: "whois.nic.us",
|
|
39
|
+
co: "whois.nic.co",
|
|
40
|
+
me: "whois.nic.me",
|
|
41
|
+
tv: "whois.nic.tv",
|
|
42
|
+
cc: "ccwhois.verisign-grs.com",
|
|
43
|
+
eu: "whois.eu",
|
|
44
|
+
au: "whois.auda.org.au",
|
|
45
|
+
kr: "whois.kr",
|
|
46
|
+
tw: "whois.twnic.net.tw",
|
|
47
|
+
uk: "whois.nic.uk",
|
|
48
|
+
nu: "whois.iis.nu",
|
|
49
|
+
"xn--p1ai": "whois.tcinet.ru", // .рф
|
|
50
|
+
// CentralNic-operated public SLD zones (still WHOIS @ centralnic)
|
|
51
|
+
"uk.com": "whois.centralnic.com",
|
|
52
|
+
"uk.net": "whois.centralnic.com",
|
|
53
|
+
"gb.com": "whois.centralnic.com",
|
|
54
|
+
"gb.net": "whois.centralnic.com",
|
|
55
|
+
"eu.com": "whois.centralnic.com",
|
|
56
|
+
"us.com": "whois.centralnic.com",
|
|
57
|
+
"se.com": "whois.centralnic.com",
|
|
58
|
+
"de.com": "whois.centralnic.com",
|
|
59
|
+
"br.com": "whois.centralnic.com",
|
|
60
|
+
"ru.com": "whois.centralnic.com",
|
|
61
|
+
"cn.com": "whois.centralnic.com",
|
|
62
|
+
"sa.com": "whois.centralnic.com",
|
|
63
|
+
"co.com": "whois.centralnic.com",
|
|
64
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rdapper",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "🎩 RDAP/WHOIS fetcher, parser, and normalizer for Node",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/jakejarvis/rdapper.git"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Jake Jarvis",
|
|
12
|
+
"email": "jake@jarv.is",
|
|
13
|
+
"url": "https://jarv.is"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"clean": "rm -rf dist",
|
|
30
|
+
"build": "npm run clean && tsc -p tsconfig.build.json",
|
|
31
|
+
"test": "npm run clean && tsc -p tsconfig.json && node --test dist/**/*.test.js",
|
|
32
|
+
"lint": "biome check --write",
|
|
33
|
+
"prepublishOnly": "npm run build"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"psl": "1.15.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@biomejs/biome": "2.2.4",
|
|
40
|
+
"@types/node": "24.5.2",
|
|
41
|
+
"@types/psl": "1.1.3",
|
|
42
|
+
"typescript": "5.9.2"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.17"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"rdap",
|
|
49
|
+
"whois",
|
|
50
|
+
"domain",
|
|
51
|
+
"registration",
|
|
52
|
+
"lookup",
|
|
53
|
+
"parser",
|
|
54
|
+
"normalizer"
|
|
55
|
+
]
|
|
56
|
+
}
|