Packages / rupm

wrap-tools 0.1.0

Word wrap, indent and dedent text, unicode width aware

Install

cargo add wrap-tools --registry rupm

In Ruststudio: Packages, search for wrap-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# wrap-tools

Word wrap, indent and dedent text, unicode width aware

Add it with `rupm add wrap-tools` (or `cargo add wrap-tools --registry rupm`).

```rust
let lines = wrap_tools::wrap("the quick brown fox", 10); // ["the quick", "brown fox"]
let ind = wrap_tools::indent("a\nb", "  ");
let ded = wrap_tools::dedent("    a\n      b");
```