6 releases

0.2.3 Feb 20, 2025
0.2.2 Dec 4, 2024
0.2.1 Oct 24, 2024
0.2.0 Jul 31, 2024
0.1.0 Jun 4, 2022

#1820 in Command line utilities

Download history 129/week @ 2024-12-04 11/week @ 2024-12-11 9/week @ 2025-02-12 124/week @ 2025-02-19 16/week @ 2025-02-26

149 downloads per month

MIT license

8KB
65 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.2.3
$ echo abc def ghi jkl mno pqr stu vwx yz |tw -w 13 -
abc def ghi\
jkl mno pqr\
stu vwx yz

Dependencies

~5–14MB
~179K SLoC