eolify 0.4.0

High-performance line ending normalization for Rust.
Documentation
1
2
3
4
5
6
7
8
9
use eolify::{Normalize, CRLF};

fn main() {
    let text = "Line one\nLine two\rLine three\r\nLine four";
    println!("Before:\n{}", text);

    let normalized = CRLF::normalize_str(text);
    println!("After normalization:\n{}", normalized);
}