{"id":18319886,"url":"https://github.com/bitwalker/scaladiff","last_synced_at":"2025-04-05T22:31:41.329Z","repository":{"id":9926274,"uuid":"11938741","full_name":"bitwalker/scaladiff","owner":"bitwalker","description":"A diff library built in Scala, for Scala projects","archived":false,"fork":false,"pushed_at":"2016-04-12T17:09:48.000Z","size":55,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T13:12:33.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","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/bitwalker.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":"2013-08-07T01:36:22.000Z","updated_at":"2023-08-02T16:07:13.000Z","dependencies_parsed_at":"2022-09-21T17:01:18.040Z","dependency_job_id":null,"html_url":"https://github.com/bitwalker/scaladiff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fscaladiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fscaladiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fscaladiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fscaladiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwalker","download_url":"https://codeload.github.com/bitwalker/scaladiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411237,"owners_count":20934650,"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-11-05T18:14:35.613Z","updated_at":"2025-04-05T22:31:41.015Z","avatar_url":"https://github.com/bitwalker.png","language":"Scala","readme":"## What is it?\n\nA Scala library for performing diffs over plain text. Results can be produced in raw, cleaned (human readable), or html formats. The base \ndiff algorithm used is [Myer's diff algorithm](http://www.xmailserver.org/diff2.pdf).\n\n## Current Status\n\nThe API is mostly firmed up, and it does produce accurate diffs (to the degree that my unit tests have verified this), \nin raw, cleaned, and html formats. It does not yet produce unidiff output, though I do plan on making that a feature. \nI would advise using this for experimental work, and report all bugs to me so that I can get them fixed up and wrap some\nunit tests around them. I would like to get this stable and production ready as soon as possible, but I just don't feel\ncomfortable with the level of testing just yet.\n\n## Installation\n\nAdd the following to your Build.scala file:\n\n```\nresolvers += \"Sonatype OSS Snapshots\" at \"https://oss.sonatype.org/content/repositories/snapshots\"\n\nlibraryDependencies ++= Seq(\n    ... other dependencies ...\n    \"net.ironforged\" % \"scaladiff_2.10\" % \"0.1-SNAPSHOT\"\n)\n```\n\n## Usage\n\nImport `net.ironforged.scaladiff.Diff` and create a Diff instance with `val diff = Diff.create(originalText, modifiedText)`. \nYou can then access the diff text using one of three variations:\n\n- `diff.toString` is the raw diff (ex. `bills +s+w-bo-ards`)\n- `diff.humanized` is the more readable version of the diff (ex. `bills -[boa]+[swo]rds`)\n- `diff.html` is the html version of the humanized diff for display on a web page\n\nUnidiff output will be added soon!\n\n## Roadmap\n\n- Add unidiff output\n- More tests\n- Stress tests (how large can the source/modified text get before we're crawling)\n- The ability to apply a diff as a patch to some text to produce the original version\n\n## LICENSE\n\n[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Fscaladiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwalker%2Fscaladiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Fscaladiff/lists"}