Skip to main content

Module utils

Module utils 

Source

Functions§

error
Prints an error message with a red cross.
get_term_width
Detects the available terminal width for responsive layout.
info
Prints an informational message with a cyan icon.
relative_time
Formats a UTC timestamp into a human-readable relative string (e.g., “2h ago”).
success
Prints a success message with a green checkmark.
warn
Prints a warning message with a yellow triangle.