Skip to main contentModule format
Source - format_compact
- Formats an integer into a compact human string with a K/M/B/T suffix.
- format_cost
- Formats a USD amount as
"$1,234.56" (comma-grouped dollars, two decimals). - format_cost_compact
- Formats a USD amount for the dense interactive dashboard, abbreviating large
values with a K/M/B/T suffix.
- format_duration_until
- Formats the time remaining until
reset_unix as a compact human string. - format_number
- Formats an integer with comma thousands-separators.
- get_current_date
- Returns today’s local date as a
YYYY-MM-DD string.