#white-space #cli #trailing

app trailing-whitespaces

Removes trailing whitespaces from your files

10 releases

new 0.3.0 May 22, 2025
0.3.0-beta.4 May 21, 2025
0.2.2 May 21, 2025
0.1.0 May 21, 2025

#209 in Filesystem

Download history 332/week @ 2025-05-16

332 downloads per month

Unlicense OR CC0-1.0

11KB
135 lines

trailing-whitespaces

Crates.io Version Unlicense MSRV 1.59 Dependency status Safe Rust Lines of code Crates.io Downloads

Removes trailing whitespaces from your files.

Inspired by npx tool https://github.com/o175/trailing-whitespaces#readme

Usage

trailing-whitespaces [-v] glob ...

-v lists changed files

Glob patterns

Rust glob crate patterns are described here. They are slighly different from JS fast-glob patterns which original JavaScript trailing-whitespaces tool uses.

Instead of

npx trailing-whitespaces ./src/**/.js

You need to run

trailing-whitespaces ./src/**/*.js

License

This is free and unencumbered software released into the public domain.

This code can be used under terms of CC0-1.0 or the Unlicense.

Unlicense logo

Dependencies

~160KB