{"id":16625821,"url":"https://github.com/aleclarson/changed-lines","last_synced_at":"2025-12-25T00:19:01.591Z","repository":{"id":57143478,"uuid":"134294871","full_name":"aleclarson/changed-lines","owner":"aleclarson","description":"Compare strings just like `git diff` does","archived":false,"fork":false,"pushed_at":"2018-12-05T16:57:08.000Z","size":2,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T22:24:01.313Z","etag":null,"topics":["comparison","git-diff","isomorphic","javascript","string"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aleclarson.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}},"created_at":"2018-05-21T16:22:31.000Z","updated_at":"2019-10-16T21:12:57.000Z","dependencies_parsed_at":"2022-09-03T18:41:15.987Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/changed-lines","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fchanged-lines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fchanged-lines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fchanged-lines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fchanged-lines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/changed-lines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243039628,"owners_count":20226131,"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":["comparison","git-diff","isomorphic","javascript","string"],"created_at":"2024-10-12T04:07:21.811Z","updated_at":"2025-12-25T00:19:01.558Z","avatar_url":"https://github.com/aleclarson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# changed-lines v1.0.0\n\nCompare strings just like `git diff` does! 😎\n\nThanks to the amazing [diff-sequences][1] package. 😇\n\n[1]: https://www.npmjs.com/package/diff-sequences\n\n```js\nconst diff = require('changed-lines');\n\n// The result is an array.\nlet res = diff(input, output);\n\n// Optional ansi colors.\nconst chalk = require('chalk');\nres = diff(input, output, {\n  green: chalk.green,\n  red: chalk.red,\n});\n```\n\nThe `input` and `output` values can be a string or array of strings.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fchanged-lines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Fchanged-lines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fchanged-lines/lists"}