UNPKG

@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

29 lines (28 loc) 872 B
/** * Interface for WHOIS data */ export interface WhoisData { registrar?: string; registrarUrl?: string; registrarIanaId?: string; creationDate?: Date; updatedDate?: Date; expirationDate?: Date; registrant?: { organization?: string; country?: string; email?: string; }; statusCodes?: string[]; nameServers?: string[]; rawText: string; } /** * Gets WHOIS data for a domain * @param domain The domain to get WHOIS data for * @param useCache Whether to use cached data if available * @param maxReferrals Maximum number of referrals to follow (to prevent infinite loops) * @param debug Whether to enable debug logging * @returns Promise resolving to WHOIS data */ export declare function getWhoisData(domain: string, useCache?: boolean, maxReferrals?: number, debug?: boolean): Promise<WhoisData>;