UNPKG

traceperf

Version:

High-performance function execution tracking and monitoring for Node.js

88 lines (87 loc) 2.07 kB
/** * Utilities for working with terminal colors */ /** * Apply color to a string * * @param text - The text to colorize * @param color - The color to apply * @returns The colorized string */ export declare function colorize(text: string, color: string): string; /** * Apply bold formatting to a string * * @param text - The text to make bold * @returns The bold string */ export declare function bold(text: string): string; /** * Apply dim formatting to a string * * @param text - The text to make dim * @returns The dim string */ export declare function dim(text: string): string; /** * Apply underline formatting to a string * * @param text - The text to underline * @returns The underlined string */ export declare function underline(text: string): string; /** * Apply red color to a string * * @param text - The text to colorize * @returns The red string */ export declare function red(text: string): string; /** * Apply green color to a string * * @param text - The text to colorize * @returns The green string */ export declare function green(text: string): string; /** * Apply yellow color to a string * * @param text - The text to colorize * @returns The yellow string */ export declare function yellow(text: string): string; /** * Apply blue color to a string * * @param text - The text to colorize * @returns The blue string */ export declare function blue(text: string): string; /** * Apply magenta color to a string * * @param text - The text to colorize * @returns The magenta string */ export declare function magenta(text: string): string; /** * Apply cyan color to a string * * @param text - The text to colorize * @returns The cyan string */ export declare function cyan(text: string): string; /** * Apply gray color to a string * * @param text - The text to colorize * @returns The gray string */ export declare function gray(text: string): string; /** * Check if terminal supports colors * * @returns Whether the terminal supports colors */ export declare function supportsColor(): boolean;