#简体中文 #txt #end

app nlf

A CLI to append newline characters (LF) at the end of text file

3 unstable releases

Uses new Rust 2024

0.2.0 Mar 8, 2025
0.1.1 Feb 21, 2025
0.1.0 Feb 15, 2025

#719 in Text processing

Download history 85/week @ 2025-02-10 157/week @ 2025-02-17 31/week @ 2025-02-24 122/week @ 2025-03-03 35/week @ 2025-03-10 6/week @ 2025-03-17

210 downloads per month

Custom license

12KB
275 lines

nlf

Crates.io Version

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

License

Dependencies

~1–1.6MB
~31K SLoC