{"id":15690579,"url":"https://github.com/linusu/node-print-diff","last_synced_at":"2025-08-01T23:09:53.402Z","repository":{"id":25441419,"uuid":"28871318","full_name":"LinusU/node-print-diff","owner":"LinusU","description":"Prints a pretty diff of two strings","archived":false,"fork":false,"pushed_at":"2023-01-06T14:42:15.000Z","size":25,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T07:31:14.775Z","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":"bleetdh/project-3","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.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":"2015-01-06T16:12:04.000Z","updated_at":"2023-12-05T07:27:19.000Z","dependencies_parsed_at":"2023-01-14T02:44:42.169Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/node-print-diff","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/LinusU/node-print-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-print-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-print-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-print-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-print-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-print-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-print-diff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268310796,"owners_count":24230185,"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-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":"2024-10-03T18:12:17.099Z","updated_at":"2025-08-01T23:09:53.383Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# print-diff\n\nPrints a pretty diff of two strings.\n\n## Installation\n\n```sh\nnpm install --save print-diff\n```\n\n## Usage\n\n```javascript\nimport { printUnifiedDiff } from 'print-diff'\n\nprintUnifiedDiff('Hello\\nLinus', 'Hello\\nworld')\n```\n\n![Output](/example-unified.png?raw=true)\n\n---\n\n```javascript\nimport { printInlineDiff } from 'print-diff'\n\nprintInlineDiff('The quick pink fox', 'The quick brown fox')\n```\n\n![Output](/example-inline.png?raw=true)\n\n## API\n\n### `printUnifiedDiff(actual, expected[, out])`\n\nPrints a unified diff.\n\n### `printInlineDiff(actual, expected[, out])`\n\nPrints an inline diff.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-print-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fnode-print-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-print-diff/lists"}