#lf #converter #cli #line-endings

app no-crlf

A CLI tool to convert CRLF line endings to LF in text files

2 stable releases

Uses new Rust 2024

1.0.3 Oct 6, 2025
1.0.0 Oct 4, 2025

#432 in Text processing

Custom license and LGPL-3.0

21KB
167 lines

Crates.io License: MIT

no-crlf

A command-line tool to automatically convert CRLF (Windows) line endings to LF (Unix/Linux) in text files.

📖 Description

no-crlf is a fast and reliable CLI utility that automatically detects and converts CRLF (Carriage Return + Line Feed, used by Windows) line endings to LF (Line Feed, Unix/Linux/macOS standard) in your text files.

✨ Features

  • 🔍 Automatic detection of text files (source code, configuration, documentation, etc.)
  • 📁 Recursive processing of directories
  • 🔒 Dry-run mode to preview changes without modifying files
  • 🙈 Automatic skip of hidden files and directories (configurable)
  • 📊 Detailed statistics on conversions performed
  • 🚀 Optimized performance to quickly process large directory trees
  • 🔧 Extended format support: Rust, TOML, JSON, YAML, Markdown, Python, JavaScript, TypeScript, C/C++, Java, Go, Ruby, PHP, C#, Swift, Kotlin, and more

Dependencies

~5.5–8MB
~113K SLoC