nlf

Crates.ionlf
lib.rsnlf
version0.2.0
created_at2025-02-15 15:14:04.759532+00
updated_at2025-03-08 10:58:13.848772+00
descriptionA CLI to append newline characters (LF) at the end of text file.
homepage
repositoryhttps://github.com/ADD-SP/nlf
max_upload_size
id1556875
size35,146
Qi (ADD-SP)

documentation

README

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

Commit count: 10

cargo fmt