#unicode #unicode-text #string #unicode-width #word

unicode-ellipsis

A crate to truncate Unicode strings to a certain width, automatically adding an ellipsis if the string is too long

8 unstable releases (3 breaking)

0.3.0 Jan 7, 2025
0.2.0 May 26, 2024
0.1.4 May 8, 2024
0.0.0 May 8, 2024

#671 in Text processing

Download history 1738/week @ 2024-11-28 1272/week @ 2024-12-05 1034/week @ 2024-12-12 1092/week @ 2024-12-19 867/week @ 2024-12-26 1306/week @ 2025-01-02 947/week @ 2025-01-09 1108/week @ 2025-01-16 907/week @ 2025-01-23 1230/week @ 2025-01-30 1212/week @ 2025-02-06 1348/week @ 2025-02-13 1555/week @ 2025-02-20 1266/week @ 2025-02-27 1267/week @ 2025-03-06 1098/week @ 2025-03-13

5,346 downloads per month
Used in bottom

MIT/Apache

43KB
1K SLoC

unicode-ellipsis

crates.io link Documentation

A crate to truncate Unicode strings to a certain width, automatically adding an ellipsis if the string is too long. Also has some helper functions around Unicode grapheme and string width.

Licensing

Dual-licensed under Apache 2.0 and MIT.


lib.rs:

A crate to truncate Unicode strings to a certain width, automatically adding an ellipsis if the string is too long.

Additionally contains some helper functions regarding string and grapheme width.

Dependencies

~2MB
~26K SLoC