Skip to main content

Module utils

Module utils 

Source

Functions§

truncate
Truncate a string to max bytes, appending “…” if truncated. Handles multi-byte UTF-8 safely by finding the nearest char boundary.