| Crates.io | nlf |
| lib.rs | nlf |
| version | 0.2.0 |
| created_at | 2025-02-15 15:14:04.759532+00 |
| updated_at | 2025-03-08 10:58:13.848772+00 |
| description | A CLI to append newline characters (LF) at the end of text file. |
| homepage | |
| repository | https://github.com/ADD-SP/nlf |
| max_upload_size | |
| id | 1556875 |
| size | 35,146 |
English | 简体中文
Append a newline character (LF) to the end of the file.
cargo install nlf --locked --profile release-small
# Append a newline character (LF) to the end of the file if it does not exist
nlf a.txt
# Fix newline characters of all .txt files in the dir directory (append if there is no newline at the end)
find dir -type f -name '*.txt' -exec nlf {} \;