{"id":19826653,"url":"https://github.com/terenceponce/diff_check","last_synced_at":"2026-05-14T04:38:00.534Z","repository":{"id":213613088,"uuid":"734518078","full_name":"terenceponce/diff_check","owner":"terenceponce","description":"A simple command-line tool that compares two files and outputs the differences.","archived":false,"fork":false,"pushed_at":"2024-01-05T16:59:50.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T09:21:42.863Z","etag":null,"topics":["diffchecker"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terenceponce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2023-12-21T22:25:18.000Z","updated_at":"2024-01-05T08:02:23.000Z","dependencies_parsed_at":"2023-12-22T00:58:59.337Z","dependency_job_id":"e9442061-2d4b-4223-8ddc-b177bff799a2","html_url":"https://github.com/terenceponce/diff_check","commit_stats":null,"previous_names":["terenceponce/diff_check"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terenceponce%2Fdiff_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terenceponce%2Fdiff_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terenceponce%2Fdiff_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terenceponce%2Fdiff_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terenceponce","download_url":"https://codeload.github.com/terenceponce/diff_check/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241183092,"owners_count":19923791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["diffchecker"],"created_at":"2024-11-12T11:11:09.379Z","updated_at":"2026-05-14T04:37:55.483Z","avatar_url":"https://github.com/terenceponce.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diff Check\n\n[![ci](https://github.com/terenceponce/diff_check/actions/workflows/ci.yml/badge.svg)](https://github.com/terenceponce/diff_check/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/terenceponce/diff_check/graph/badge.svg?token=F692aysHWW)](https://codecov.io/gh/terenceponce/diff_check)\n\n[![asciicast](https://asciinema.org/a/XEfI7MRXkzP26bptADLvR4Gz8.svg)](https://asciinema.org/a/XEfI7MRXkzP26bptADLvR4Gz8)\n\n## Overview\n\nDiff Check is a command-line tool that compares two files and prints the\ndifferences between them.\n\nThe way this works is that it builds a 2D matrix of the two files by\ncomputing for the longest subsequence between each files. It then prints\nthe differences between the two files by backtracking through the matrix.\n\nThe LCS implementation used is based on this Wikipedia article:\n\nhttps://en.wikipedia.org/wiki/Longest_common_subsequence\n\n## Getting Started\n\nThere are 2 ways to use this application.\n\n- Build the app from source\n- Download the executable and run it\n\nI recommend just building the app from source because downloading the\nexecutable requires you to have Erlang installed anyway.\n\n### Build from Source\n\nFirst, clone the repo and go to the new directory.\n\n```\ngit clone git@github.com:terenceponce/diff_check.git\ncd diff_check\n```\n\nNext, make sure that you have the correct version Erlang and Elixir installed\nusing [asdf](https://asdf-vm.com/).\n\n**NOTE**: If you are using a different version manager for Erlang and Elixir,\nfeel free to ignore this step.\n\n```\nasdf install\n```\n\nNext, install the dependencies needed by this repo and compile the executable.\n\n```\nmix deps.get\nmix escript.build\n```\n\nFinally, run the executable.\n\n```\n./diff_check path/to/base/file path/to/comparison/file\n```\n\nIf you don't have any files to compare, you can just use the fixtures used in\nthe tests.\n\n```\n./diff_check test/support/fixtures/test_response_1.json test/support/fixtures/test_response_2.json\n```\n\n### Download and Run Executable\n\n**NOTE**: As I mentioned above, this step requires your machine to have Erlang\ninstalled which is why I recommend just building it from source if you're\nalready at that point.\n\nFirst, go to the [Releases Page] and download the file that looks like this.\n\n```\ndiff_check-x.x.x\n```\n\nFinally, run the executable.\n\n```\n./diff_check-x-x-x path/to/base/file path/to/comparison/file\n```\n\nIf you don't have any files to compare, you can just use the fixtures used in\nthe tests.\n\n```\n./diff_check-x-x-x test/support/fixtures/test_response_1.json test/support/fixtures/test_response_2.json\n```\n\n[Releases Page]: https://github.com/terenceponce/diff_check/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterenceponce%2Fdiff_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterenceponce%2Fdiff_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterenceponce%2Fdiff_check/lists"}