Skip to main content

Module utils

Module utils 

Source

Functions§

truncate
Truncate a string to a maximum number of characters, adding “…” if truncated. Handles Unicode correctly by counting characters, not bytes.