#readline #trim #parametrized #in-place #newline

app trim

trim whitespaces from files

16 releases (10 stable)

2.0.2 Mar 14, 2021
2.0.1 Mar 23, 2020
1.2.1 Mar 18, 2020
1.1.0 Jan 30, 2020
0.1.5 Jul 22, 2019
Download history 1/week @ 2023-07-28 1/week @ 2023-08-04 17/week @ 2023-08-18 16/week @ 2023-08-25 18/week @ 2023-09-08 17/week @ 2023-09-15 2/week @ 2023-09-22 2/week @ 2023-09-29 1/week @ 2023-10-06 3/week @ 2023-10-20 34/week @ 2023-10-27 13/week @ 2023-11-03 20/week @ 2023-11-10

70 downloads per month

MIT license

29KB
505 lines

trim

trim-crate

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

  1. trim
    1. Overview

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

~4MB
~81K SLoC