Skip to main content

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=cyan, payload=default, 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 dimmed dot prefix for development purposes
log_error
Displays an error message with a red cross prefix
log_info
Displays an information message with a cyan arrow prefix
log_success
Displays a success message with a green checkmark prefix
log_warning
Displays a warning message with a yellow warning symbol prefix
start_progress
Creates an animated spinner to indicate ongoing operations with the specified message
start_progress_with_color
Creates an animated spinner with a custom color to indicate ongoing operations