loe
Yet another line ending (CRLF <-> LF) converter written in Rust. It is distributed both as a library and as a runnable program. Designed with performance in mind (works on byte buffers instead of strings).
Features
- CRLF -> LF and LF -> CRLF conversion
- Input encoding checking (Ascii, UTF-8, easily extensible)
Usage
Command line
$ cargo install loe
$ loe --help # prints usage
$ loe -o dos.txt unix.txt
Library
In Cargo.toml
[]
= "0.1"
In your source file:
extern crate loe;
use Cursor;
use ;
See documentation to know more!
License
Tipograph is licensed under MIT. Feel free to use it, contribute or spread the word.