Module utils

Module utils 

Source

Modules§

compression

Functions§

format_base64_preview
Formats a base64 encoded string for display with preview (shows first/last chars with length)
format_duration
Converts a duration into human-readable format (hours, minutes, seconds)
format_jwt_token
Colorizes JWT token components for better visual distinction (header=blue, payload=magenta, signature=yellow)
format_value
Returns a value formatted with color based on success status (green for success, red for failure)
log_debug
Displays a debug message with a cyan question mark prefix for development purposes
log_error
Displays an error message with a red minus icon prefix
log_info
Displays an information message with a blue asterisk icon prefix
log_success
Displays a success message with a green plus icon prefix
log_warning
Displays a warning message with a yellow exclamation mark prefix
start_progress
Creates an animated spinner to indicate ongoing operations with the specified message