5 releases (3 stable)
2.0.2 | Mar 21, 2020 |
---|---|
2.0.0 | Mar 20, 2020 |
0.1.1 | Jul 8, 2019 |
0.1.0 | Jul 8, 2019 |
#11 in #trim
13KB
220 lines
trim
trim
was inspired by the auto-trimming feature of Atom, where trailing whitespace of every line is removed, and trailing newlines are replaced with a single newline.
Table of Contents
Overview
~
$ trim --help
trim 1.2.1
Jack <jackwchoi@pm.me>
trim whitespaces from files
USAGE:
trim [FLAGS] [files]...
FLAGS:
-h, --help Prints help information
-i, --in-place trim <files> in-place, overwritting the content of the files atomically
-N, --supress-newline suppress outputting the trailing `\n` in the last line
-S, --supress-summary suppress summary
-V, --supress-visual suppress visualizations of the trim
--version Prints version information
ARGS:
<files>... files to trim; if '-' exists or none provided, stdin will be used
Dependencies
~5–12MB
~140K SLoC