{"id":19053752,"url":"https://github.com/engossoftware/biff","last_synced_at":"2026-03-07T08:02:36.157Z","repository":{"id":197947483,"uuid":"699882700","full_name":"EngosSoftware/biff","owner":"EngosSoftware","description":"Byte by byte file comparator","archived":false,"fork":false,"pushed_at":"2025-11-27T18:43:08.000Z","size":121,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-28T05:14:48.484Z","etag":null,"topics":["byte","comparator","files"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EngosSoftware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-03T14:25:19.000Z","updated_at":"2025-11-27T18:43:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"dee02004-d789-44b4-92ba-565051534c6b","html_url":"https://github.com/EngosSoftware/biff","commit_stats":null,"previous_names":["wisbery/biff"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/EngosSoftware/biff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fbiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fbiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fbiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fbiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EngosSoftware","download_url":"https://codeload.github.com/EngosSoftware/biff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngosSoftware%2Fbiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["byte","comparator","files"],"created_at":"2024-11-08T23:33:53.641Z","updated_at":"2026-03-07T08:02:36.060Z","avatar_url":"https://github.com/EngosSoftware.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# biff\n\n[![crates.io][crates-badge]][crates-url]\n[![coverage][cov-badge-coverio]][cov-url]\n![Linux][build-badge-linux]\n![Windows][build-badge-windows]\n![macOs][build-badge-macos]\n![macOs arm64][build-badge-macos-arm64]\n[![MIT][mit-badge]][mit-url]\n[![Apache][apache-badge]][apache-url]\n[![cc][cc-badge]][cc-url]\n[![mbh][mbh-badge]][mbh-url]\n\n[crates-badge]: https://img.shields.io/crates/v/biff.svg\n[crates-url]: https://crates.io/crates/biff\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg\n[mit-url]: https://github.com/EngosSoftware/biff/blob/main/LICENSE-MIT\n[mit-license-url]: https://github.com/EngosSoftware/biff/blob/main/LICENSE-MIT\n[apache-badge]: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n[apache-url]: https://github.com/EngosSoftware/biff/blob/main/LICENSE-APACHE\n[apache-license-url]: https://github.com/EngosSoftware/biff/blob/main/LICENSE\n[apache-notice-url]: https://github.com/EngosSoftware/biff/blob/main/NOTICE\n[build-badge-linux]: https://github.com/EngosSoftware/biff/actions/workflows/build-linux.yml/badge.svg\n[build-badge-windows]: https://github.com/EngosSoftware/biff/actions/workflows/build-windows.yml/badge.svg\n[build-badge-macos]: https://github.com/EngosSoftware/biff/actions/workflows/build-macos.yml/badge.svg\n[build-badge-macos-arm64]: https://github.com/EngosSoftware/biff/actions/workflows/build-macos-arm64.yml/badge.svg\n[cov-badge-coverio]: https://img.shields.io/badge/cov-100%25-21b577.svg\n[cov-url]: https://crates.io/crates/coverio\n[cc-badge]: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg\n[cc-url]: https://github.com/EngosSoftware/biff/blob/main/CODE_OF_CONDUCT.md\n[mbh-badge]: https://img.shields.io/badge/Made_by-HUMAN-c51162.svg\n[mbh-url]: https://github.com/DariuszDepta\n[github-url]: https://github.com/EngosSoftware/biff\n[es-badge]: https://img.shields.io/badge/Brought_to_you_by-Engos_Software-336600.svg \n[es-url]: https://engos.de\n\n**Byte by byte file comparator**\n\n## Overview\n\n**biff** compares two files byte by byte, and if they differ, tells the first byte and line number where they differ.\nAdditionally, when option `-l` or `--verbose` is set, **biff** will display all differing bytes.\n\n**biff** may also skip some initial bytes in compared files or compare only up to requested number of bytes.\n\nWhen comparing binary files, **biff** may check the beginning bytes if they match the specified **_marker_**,\nso only files having such marker will be compared.\n\nThere are also some popular cases, when compared files differ only in few bytes, but generally may be considered\nas **_similar_** and this is quite alright. For such comparisons **biff** may use the absolute total number\nof acceptable differences (option `-a` or `--absolute`) or a percentage difference limit (option `-p` or `--percent`).\n\nThe most popular use case of such **_similarity comparisons_** are PDF files generated from the same HTML files\nusing for example [**htop**](https://crates.io/crates/htop). \n\nThe best fit for **biff** are test cases with output values being binary files.  \n\n## Installation\n\n```\n$ cargo install biff\n```\n\n## Usage\n\nDisplay short description of **biff** options:\n\n```\n$ biff -h\n```\n\nDisplay detailed description of **biff** options:\n\n```\n$ biff --help\n```\n\n## Examples\n\n### Files are equal\n\n```shell\n$ cat sample1.txt\nLorem ipsum.\n$ cat sample2.txt\nLorem ipsum.\n\n$ biff sample1.txt sample2.txt\n$ echo $?\n0\n```\n\n### Files are equal but starting from the 3rd byte\n\n```shell\n$ cat sample1.txt\nLOrem ipsum.\n$ cat sample2.txt\nMArem ipsum.\n\n$ biff -i 2 sample1.txt sample2.txt\n$ echo $?\n0\n```\n\n### Files are similar (difference limits)\n\n```shell\n$ cat sample1.txt\nLoreM ipsum.\n$ cat sample2.txt\nLoRem ipsuM.\n\n$ biff -a 3 sample1.txt sample2.txt\n$ echo $?\n0\n\n$ biff -p 26.8 sample1.txt sample2.txt\n$ echo $?\n0\n\n$ biff -q -p 26.8 sample1.txt sample2.txt\n$ echo $?\n0\n```\n\n### Files differ\n\n```shell\n$ cat sample1.txt\nLoreM ipsum.\n$ cat sample2.txt\nLoRem ipsuM.\n\n$ biff sample1.txt sample2.txt\nsample1.txt sample2.txt differ: byte 3, line 1\n$ echo $?\n1\n\n$ biff -b sample1.txt sample2.txt\nsample1.txt sample2.txt differ: byte 3, line 1 is 114 82\n$ echo $?\n1\n\n$ biff -bx sample1.txt sample2.txt\nsample1.txt sample2.txt differ: byte 3, line 1 is 72 52\n$ echo $?\n1\n\n$ biff -q sample1.txt sample2.txt\n$ echo $?\n1\n\n$ biff -l sample1.txt sample2.txt\n3    114  82\n5    77  109\n11   109  77\n$ echo $?\n1\n\n$ biff -p 0.1 sample1.txt sample2.txt\nsample1.txt sample2.txt differ: limit 0.1% exceeded by value 25.00%\n$ echo $?\n1\n\n$ biff -a 1 sample1.txt sample2.txt\nsample1.txt sample2.txt differ: limit 1 exceeded by value 3\n$ echo $?\n1\n```\n\n## License\n\nLicensed under either of\n\n- [MIT license][mit-url] (see [LICENSE-MIT][mit-license-url]) or\n- [Apache License, Version 2.0][apache-url] (see [LICENSE][apache-license-url] and [NOTICE][apache-notice-url])\n\nat your option.\n\n## Contribution\n\nAny contributions to [**biff**][github-url] are greatly appreciated.\nAll contributions intentionally submitted for inclusion in the work by you,\nshall be dual licensed as above, without any additional terms or conditions.\n\n⎯⎯⎯ \n\n[![Engos Software][es-badge]][es-url]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengossoftware%2Fbiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengossoftware%2Fbiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengossoftware%2Fbiff/lists"}