@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
31 lines (30 loc) • 1.06 kB
TypeScript
/**
* Utility functions for logging and error handling
*/
/**
* Logs an error message in debug mode
* @param debug Whether debug mode is enabled
* @param section The section where the error occurred
* @param error The error object or message
*/
export declare function logError(debug: boolean, section: string, error: unknown): void;
/**
* Logs a warning message in debug mode
* @param debug Whether debug mode is enabled
* @param section The section where the warning occurred
* @param message The warning message
*/
export declare function logWarning(debug: boolean, section: string, message: string): void;
/**
* Logs an informational message in debug mode
* @param debug Whether debug mode is enabled
* @param section The section where the info occurred
* @param message The informational message
*/
export declare function logInfo(debug: boolean, section: string, message: string): void;
declare const _default: {
logError: typeof logError;
logWarning: typeof logWarning;
logInfo: typeof logInfo;
};
export default _default;