{"id":25376794,"url":"https://github.com/terrierscript/compact-diff","last_synced_at":"2025-07-23T09:08:54.119Z","repository":{"id":28339537,"uuid":"31852811","full_name":"terrierscript/compact-diff","owner":"terrierscript","description":"Compact result diff (node-jsdiff wrapper)","archived":false,"fork":false,"pushed_at":"2021-08-06T08:37:14.000Z","size":156,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T15:03:01.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/terrierscript.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-03-08T14:36:07.000Z","updated_at":"2019-09-05T13:48:18.000Z","dependencies_parsed_at":"2022-06-26T08:04:13.660Z","dependency_job_id":null,"html_url":"https://github.com/terrierscript/compact-diff","commit_stats":null,"previous_names":["suisho/compact-diff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/terrierscript/compact-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fcompact-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fcompact-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fcompact-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fcompact-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrierscript","download_url":"https://codeload.github.com/terrierscript/compact-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fcompact-diff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266649215,"owners_count":23962190,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-15T04:39:32.004Z","updated_at":"2025-07-23T09:08:54.100Z","avatar_url":"https://github.com/terrierscript.png","language":"JavaScript","readme":"# compact-diff [![Circle CI](https://circleci.com/gh/suisho/compact-diff.svg?style=svg)](https://circleci.com/gh/suisho/compact-diff)\n\nCompact result diff ([kpdecker/jsdiff](https://github.com/kpdecker/jsdiff) wrapper)\n\n\n# Usage\n\n```js\nvar compactDiff = require(\"compact-diff\")\nvar result = compactDiff(\"foogesbaz\", \"foodorbaz\")\n// result = [\n//   { value: \"foo\" },\n//   { added: \"dor\", removed : \"ges\"},\n//   { value: \"baz\" }\n// ]\n```\n\n## `fromEnding`\n\nCheck diff from end of character\n\n```js\nvar compactDiff = require(\"compact-diff\")\nvar result = diff.fromEnd(\"foobazbaz\", \"bazbazbaz\")\n// result = [\n//   { added: \"baz\", removed: \"foo\" },\n//   { value: \"bazbaz\" }\n// ]\n```\n\n# Output\nThis module output those array\n- `value` : Set value if not change(added or removed)\n- `added` : Set value if `added`\n- `removed` : Set value if `removed`\n- If `added` and `removed` is adjacenced, those output as same object","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrierscript%2Fcompact-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrierscript%2Fcompact-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrierscript%2Fcompact-diff/lists"}