{"id":23488444,"url":"https://github.com/onesy-me/diff","last_synced_at":"2025-04-14T11:07:58.714Z","repository":{"id":44306758,"uuid":"456798401","full_name":"onesy-me/diff","owner":"onesy-me","description":"Difference algorithm ","archived":false,"fork":false,"pushed_at":"2024-12-12T22:32:36.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T11:07:55.825Z","etag":null,"topics":["algorithm","algorithms","amaui","browser","diff","diff-algorithm","difference","difference-algorithm","javascript","js","library","myers-algorithm","node","nodejs","typescript","utils","web"],"latest_commit_sha":null,"homepage":"https://docs.onesy.me/library/diff","language":"TypeScript","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/onesy-me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-02-08T05:40:37.000Z","updated_at":"2024-12-12T22:32:40.000Z","dependencies_parsed_at":"2024-03-29T23:27:23.897Z","dependency_job_id":"d5f3ee89-b75c-417f-b7df-578209b84d4d","html_url":"https://github.com/onesy-me/diff","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"409b940cc4849f18c46a415a0093f5627fdf8e0c"},"previous_names":["onesy-me/amaui-diff","amaui-org/amaui-diff"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onesy-me","download_url":"https://codeload.github.com/onesy-me/diff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868769,"owners_count":21174758,"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":["algorithm","algorithms","amaui","browser","diff","diff-algorithm","difference","difference-algorithm","javascript","js","library","myers-algorithm","node","nodejs","typescript","utils","web"],"created_at":"2024-12-24T23:11:30.476Z","updated_at":"2025-04-14T11:07:58.692Z","avatar_url":"https://github.com/onesy-me.png","language":"TypeScript","readme":"\n\u003c/br\u003e\n\u003c/br\u003e\n\n\u003cp align='center'\u003e\n  \u003ca target='_blank' rel='noopener noreferrer' href='#'\u003e\n    \u003cimg src='utils/images/logo.svg' alt='onesy logo' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align='center'\u003eonesy Diff\u003c/h1\u003e\n\n\u003cp align='center'\u003e\n  Own implementation of The Myers Difference Algorithm\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003ch3 align='center'\u003e\n  \u003csub\u003eMIT license\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eProduction ready\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eUMD 3.1kb gzipped\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003e100% test cov\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eBrowser and Nodejs\u003c/sub\u003e\n\u003c/h3\u003e\n\n\u003cp align='center'\u003e\n    \u003csub\u003eVery simple code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eModern code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eJunior friendly\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eTypescript\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eMade with :yellow_heart:\u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n## Getting started\n\n### Add\n\n```sh\nyarn add @onesy/diff\n```\n\n### Use\n\n```javascript\n  import OnesyDiff from '@onesy/diff';\n\n  // Make a new OnesyDiff instance\n  // with an optional initial value for options\n  const onesyDiff = new OnesyDiff();\n\n  // Diff\n  const diff = onesyDiff.diff('aaa', 'aab');\n\n  // {\n  //   items: ['r', 2, 'a', 2, 'b']\n  // }\n\n  // Update\n  onesyDiff.update('aaa', diff);\n\n  // 'aab'\n```\n\n### Dev\n\nInstall\n\n```sh\nyarn\n```\n\nTest\n\n```sh\nyarn test\n```\n\n### Prod\n\nBuild\n\n```sh\nyarn build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Fdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonesy-me%2Fdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Fdiff/lists"}