UNPKG

domain-info-fetcher

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

28 lines (27 loc) 807 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) * @returns Promise resolving to WHOIS data */ export declare function getWhoisData(domain: string, useCache?: boolean, maxReferrals?: number): Promise<WhoisData>;