Skip to main content

Module text

Module text 

Source
Expand description

Text utilities for formatting and display

Functionsยง

format_number
Format a number with thousand separators
normalize_whitespace
Clean up and normalize whitespace in a string
pad_right
Pad a string to a given width
truncate
Truncate a string to fit within a given width, adding ellipsis if needed