#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

#603 in Text processing

Download history 1001/week @ 2024-10-26 1104/week @ 2024-11-02 1213/week @ 2024-11-09 1204/week @ 2024-11-16 1513/week @ 2024-11-23 1417/week @ 2024-11-30 1198/week @ 2024-12-07 1046/week @ 2024-12-14 1010/week @ 2024-12-21 896/week @ 2024-12-28 1294/week @ 2025-01-04 926/week @ 2025-01-11 1107/week @ 2025-01-18 898/week @ 2025-01-25 1401/week @ 2025-02-01 1189/week @ 2025-02-08

4,756 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