{"id":17795865,"url":"https://github.com/avh4/elm-diff","last_synced_at":"2025-03-17T00:33:47.719Z","repository":{"id":26133065,"uuid":"29577995","full_name":"avh4/elm-diff","owner":"avh4","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-19T02:08:26.000Z","size":36,"stargazers_count":5,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T13:46:33.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"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/avh4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-21T07:43:19.000Z","updated_at":"2017-09-19T08:34:03.000Z","dependencies_parsed_at":"2022-08-25T17:11:08.631Z","dependency_job_id":null,"html_url":"https://github.com/avh4/elm-diff","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avh4","download_url":"https://codeload.github.com/avh4/elm-diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"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":[],"created_at":"2024-10-27T11:39:14.355Z","updated_at":"2025-03-17T00:33:46.565Z","avatar_url":"https://github.com/avh4.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nCompares strings to produce change lists.  `diffChars` and `diffLines` are provided.\n\nThe currently-implemented algorithm is the [Hunt-McIlroy algorithm](http://en.wikipedia.org/wiki/Hunt%E2%80%93McIlroy_algorithm).\n\nPull requests optimizing the existing algorithm are welcome.\n\nPull requests implementing alternative diff algorithms (notably, the [Patience algorithm](http://alfedenzo.livejournal.com/170301.html)) are also welcome.\n\n```elm\nimport Diff (..)\n\ndiffChars \"abc\" \"aBcd\"\n  -- [ NoChange \"a\", Changed \"b\" \"B\", NoChange \"c\", Added \"d\" ]\n\n\noriginal = \"\"\"Brian\nSohie\nOscar\nStella\nTakis\n\"\"\"\n\nchanged = \"\"\"BRIAN\nStella\nFrosty\nTakis\n\"\"\"\n\ndiffLines original changed\n  -- [ Changed \"Brian\\nSohie\\nOscar\\n\" \"BRIAN\\n\"\n  -- , NoChange \"Stella\\n\"\n  -- , Added \"Frosty\\n\"\n  -- , NoChange \"Takis\\n\"\n  -- ]\n```\n\n**This package should still be considered unstable:** while the returned list of changes will always be correct, the specific the list of changes and the way the changes are grouped/combined, as well as the performance characteristics of the diff algorithm may change in future releases of this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Felm-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favh4%2Felm-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Felm-diff/lists"}