2 releases
new 0.1.1 | Feb 21, 2025 |
---|---|
0.1.0 | Feb 15, 2025 |
#310 in Text processing
96 downloads per month
11KB
244 lines
nlf
English | 简体中文
Append a newline character (LF) to the end of the file.
Installation
Cargo
cargo install nlf --locked --profile release-small
Usage
# 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 {} \;
License
Dependencies
~1–1.6MB
~31K SLoC