rs-text-wrap 0.1.0
Word wrap, indent and dedent text, unicode width aware
Install
cargo add rs-text-wrap --registry rupm
In Ruststudio: Packages, search for rs-text-wrap, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-text-wrap
Word wrap, indent and dedent text, unicode width aware
Add it with `rupm add rs-text-wrap` (or `cargo add rs-text-wrap --registry rupm`).
```rust
let lines = rs_text_wrap::wrap("the quick brown fox", 10); // ["the quick", "brown fox"]
let ind = rs_text_wrap::indent("a\nb", " ");
let ded = rs_text_wrap::dedent(" a\n b");
```