Static
colorApply color styling to text with automatic fallback for unsupported terminals.
Text to colorize
Color function (e.g., chalk.red)
Colored text or plain text if colors not supported
Static
resetReset cached values (no-op - kept for test compatibility)
Static
symbolDisplay Unicode symbol with ASCII fallback for unsupported terminals.
Preferred Unicode symbol
ASCII fallback character
Unicode symbol or fallback based on terminal support
Static
emojiCreates a safe emoji string
Static
coloredCreates a safe colored symbol with fallback
Static
safeCreates a safe colored text with emoji handling
Optional
colorFn: ColorFunctionStatic
formatCreates a safe formatted message with prefix, symbol, and content
Optional
contentColor: ColorFunctionStatic
formatCreates logger-style error formatting
Optional
suggestion: stringStatic
formatCreates logger-style warning formatting
Static
formatCreates logger-style info formatting
Static
formatCreates logger-style debug formatting
Static
getGet safe fallback symbols for different log levels
Safe string formatting utilities with automatic fallbacks for terminal compatibility. Handles color, Unicode, and emoji formatting with appropriate fallbacks.