5 releases

0.2.2 Dec 4, 2024
0.2.1 Oct 24, 2024
0.2.0 Jul 31, 2024
0.1.1 Apr 21, 2024
0.1.0 Jun 4, 2022

#770 in Command line utilities

Download history 7/week @ 2024-09-11 5/week @ 2024-09-18 13/week @ 2024-09-25 17/week @ 2024-10-02 124/week @ 2024-10-23 6/week @ 2024-10-30 129/week @ 2024-12-04 11/week @ 2024-12-11

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

Dependencies

~4–13MB
~160K SLoC