{"id":50799856,"url":"https://github.com/pnevyk/loe","last_synced_at":"2026-06-12T18:32:19.679Z","repository":{"id":62442388,"uuid":"152873874","full_name":"pnevyk/loe","owner":"pnevyk","description":"Very fast and yet another line ending (CRLF \u003c-\u003e LF) converter written in Rust.","archived":false,"fork":false,"pushed_at":"2022-05-28T13:01:48.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T10:14:18.714Z","etag":null,"topics":["crlf","lf","newline"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pnevyk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-13T13:20:00.000Z","updated_at":"2022-05-28T12:16:43.000Z","dependencies_parsed_at":"2022-11-01T22:02:35.241Z","dependency_job_id":null,"html_url":"https://github.com/pnevyk/loe","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pnevyk/loe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnevyk%2Floe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnevyk%2Floe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnevyk%2Floe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnevyk%2Floe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnevyk","download_url":"https://codeload.github.com/pnevyk/loe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnevyk%2Floe/sbom","scorecard":{"id":739050,"data":{"date":"2025-08-11","repo":{"name":"github.com/pnevyk/loe","commit":"5977e4c20c63ce4828b1f897e2e26accef86987a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/all.rs:4","Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/utf8.rs:3"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0139","Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375","Warn: Project is vulnerable to: RUSTSEC-2019-0035 / GHSA-mmc9-pwm7-qj5w","Warn: Project is vulnerable to: RUSTSEC-2023-0018 / GHSA-mc8h-8q98-g5hr"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T16:49:52.072Z","repository_id":62442388,"created_at":"2025-08-22T16:49:52.072Z","updated_at":"2025-08-22T16:49:52.072Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34258366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crlf","lf","newline"],"created_at":"2026-06-12T18:32:14.908Z","updated_at":"2026-06-12T18:32:19.634Z","avatar_url":"https://github.com/pnevyk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loe\n\nVery fast and yet another line ending (CRLF \u003c-\u003e LF) converter written in Rust. It is distributed both as a library and\nas a runnable program. Designed with performance in mind (works on byte buffers instead of strings).\n\n## Features\n\n* CRLF -\u003e LF and LF -\u003e CRLF conversion\n* Input encoding checking (Ascii, UTF-8, easily extensible)\n* That's basically it\n\n## Usage\n\n### Command line\n\n```shell\n$ cargo install loe\n$ loe --help  # prints usage\n$ loe -o unix.txt dos.txt\n```\n\n### Library\n\nIn `Cargo.toml`\n\n```toml\n[dependencies]\nloe = \"0.3\"\n```\n\nIn your source file:\n\n```rust\nextern crate loe;\n\nuse std::io::Cursor;\n\nuse loe::{process, Config};\n\nfn convert(input: String) -\u003e String {\n    let mut input = Cursor::new(input);\n    let mut output = Cursor::new(Vec::new());\n\n    process(\u0026mut input, \u0026mut output, Config::default());\n    String::from_utf8(output.into_inner()).unwrap()\n}\n```\n\nSee [documentation](https://docs.rs/loe/) to know more!\n\n## Benchmarks\n\nThe benchmark was performed with [hyperfine](https://github.com/sharkdp/hyperfine) tool using `hyperfine '\u003ccommand\u003e'\n--prepare 'sync; echo 3 | sudo tee /proc/sys/vm/drop_caches'` command. As dos2unix checks if the file is binary by\ndefault, `-e ascii` is used for loe commands as it imitates this behavior in loe.\n\n#### Hardware \u0026 software configuration\n\n| Key | Value |\n|:---|:---|\n| File `bench.txt` | 144 MB, 200k lines, ascii only |\n| Processor | Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz |\n| Disk | Samsung SSD 840 |\n| Kernel | 4.20.5-arch1-1-ARCH |\n| loe | 0.2.0 |\n| dos2unix | 7.4.0 |\n| hyperfine | 1.3.0 |\n\n#### Results\n\n| Command | Mean [ms] | Min…Max [ms] |\n|:---|---:|---:|\n| `loe -o out.txt bench.txt` | 1011.2 ± 59.9 | 968.5…1153.3 |\n| `loe -e ascii -o out.txt bench.txt` | 962.9 ± 14.2 | 950.3…996.6 |\n| `dos2unix -n bench.txt out.txt` | 1358.8 ± 94.1 | 1214.3…1502.9 |\n| `loe -e ascii -n crlf -o out.txt bench.txt` | 1105.6 ± 18.0 | 1077.4…1135.2 |\n| `unix2dos -n bench.txt out.txt` | 1763.6 ± 118.5 | 1636.4…1985.2 |\n| `loe -e ascii -o bench.txt bench.txt` | 1086.4 ± 20.3 | 1050.0…1129.2 |\n| `dos2unix bench.txt` | 1354.0 ± 81.1 | 1246.4…1484.0 |\n| `tr -d '\\r' \u003c bench.txt \u003e out.txt` | 472.4 ± 4.3 | 466.8…478.9 |\n\nOn average, loe is ~1.4 times faster than dos2unix. Bear in mind that dos2unix offers more features than loe. On the\nother hand, implementing them in loe should not affect the performance much.\n\n## License\n\nloe is licensed under [MIT](LICENSE). Feel free to use it, contribute or spread the word.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnevyk%2Floe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnevyk%2Floe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnevyk%2Floe/lists"}