| Crates.io | trailfix |
| lib.rs | trailfix |
| version | 0.1.0 |
| created_at | 2025-09-30 15:34:16.060713+00 |
| updated_at | 2025-09-30 15:34:16.060713+00 |
| description | Trim trailing whitespace and ensure single newline at EOF |
| homepage | |
| repository | https://github.com/alexykn/trailfix |
| max_upload_size | |
| id | 1861290 |
| size | 6,378 |
Trim trailing whitespace and ensure single newline at EOF.
# Print fixed content to stdout
tf file.txt
# Multiple files
tf file1.txt file2.txt file3.txt
# Directory (non-recursive)
tf dir/
# Directory (recursive)
tf -r dir/
# Overwrite files in place
tf -o file.txt
tf --overwrite file.txt
# Redirect output to new file
tf file.txt > fixed.txt
# Pipe from stdin
curl https://example.com/file.txt | tf > fixed.txt
cargo install trailfix
cargo install --path .
cargo build --release