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

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

#1076 in Text processing

Download history 1401/week @ 2025-02-01 1215/week @ 2025-02-08 1430/week @ 2025-02-15 1437/week @ 2025-02-22 1279/week @ 2025-03-01 1229/week @ 2025-03-08 1543/week @ 2025-03-15 1424/week @ 2025-03-22 1292/week @ 2025-03-29 1161/week @ 2025-04-05 935/week @ 2025-04-12 1284/week @ 2025-04-19 874/week @ 2025-04-26 681/week @ 2025-05-03 869/week @ 2025-05-10 638/week @ 2025-05-17

3,175 downloads per month
Used in 2 crates

MIT/Apache

43KB
1K SLoC

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.


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.

Dependencies

~2MB
~26K SLoC