2 releases

0.1.1 Apr 21, 2024
0.1.0 Jun 4, 2022

#938 in Command line utilities

Download history 6/week @ 2024-02-23 3/week @ 2024-03-01 16/week @ 2024-03-29 3/week @ 2024-04-05 159/week @ 2024-04-19 16/week @ 2024-04-26 1/week @ 2024-05-03

176 downloads per month

MIT license

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

Dependencies

~1.6–2.2MB
~39K SLoC