@xyz/whois
Version:
A powerful TypeScript/JavaScript tool for comprehensive domain analysis, featuring detailed WHOIS data with registration dates, registrars, and domain status. Offers SSL certificate extraction (with PEM support), DNS records, and server details. Includes
18 lines (17 loc) • 595 B
TypeScript
import { WhoisData } from '../whois';
/**
* Gets cached WHOIS data if available and not expired
* @param domain The domain to get cached data for
* @returns Cached WHOIS data or undefined if not available or expired
*/
export declare function getCachedWhoisData(domain: string): WhoisData | undefined;
/**
* Caches WHOIS data for a domain
* @param domain The domain to cache data for
* @param data The WHOIS data to cache
*/
export declare function cacheWhoisData(domain: string, data: WhoisData): void;
/**
* Clears the WHOIS cache
*/
export declare function clearWhoisCache(): void;