MCPcopy Create free account
hub / github.com/lissy93/web-check / hasUsefulData

Function hasUsefulData

api/whois.js:90–96  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

88
89// Whether a parsed result set has anything worth returning to the frontend
90const hasUsefulData = (r) =>
91 r &&
92 (pick(r, 'Created Date', 'Creation Date') ||
93 pick(r, 'Updated Date') ||
94 pick(r, 'Expiry Date', 'Registry Expiry Date') ||
95 pick(r, 'Registrar') ||
96 cleanNs(pick(r, 'Name Server')));
97
98// Resolve domain registration data via whoiser, with rdap.org as a fallback for TLD gaps
99const whoisHandler = async (url) => {

Callers 1

whoisHandlerFunction · 0.85

Calls 2

pickFunction · 0.85
cleanNsFunction · 0.85

Tested by

no test coverage detected