#cli #input #textwrap #textwrap-cli

app textwrap-cli

Command line interface for textwrap

7 releases

new 0.2.4 Apr 16, 2025
0.2.3 Feb 20, 2025
0.2.2 Dec 4, 2024
0.2.1 Oct 24, 2024
0.1.0 Jun 4, 2022

#486 in Text processing

Download history 5/week @ 2025-02-09 115/week @ 2025-02-16 20/week @ 2025-02-23 9/week @ 2025-03-02 112/week @ 2025-04-13

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

Dependencies

~5–13MB
~179K SLoC