Thanks to visit codestin.com
Credit goes to lib.rs

11 unstable releases (3 breaking)

Uses new Rust 2024

0.4.1 Nov 13, 2025
0.3.1 Oct 27, 2025
0.2.4 Apr 16, 2025
0.2.3 Feb 20, 2025
0.1.0 Jun 4, 2022

#1809 in Text processing

MIT license

8KB
70 lines

$ tw -h
Command line interface for textwrap

Usage: tw [OPTIONS] <INPUT_FILES>...

Arguments:
  <INPUT_FILES>...  Input file(s); use `-` to read from standard input

Options:
  -w <WIDTH>     Width [default: 80]
  -e <EOL>       End of line string [default: \]
  -h, --help     Print help
  -V, --version  Print version
$ tw -V
tw 0.4.1
$ echo abc def ghi jkl mno pqr stu vwx yz |tw -w 13 -
abc def ghi\
jkl mno pqr\
stu vwx yz

Dependencies

~4–18MB
~205K SLoC