{"library":"gitdiff-parser","type":"library","category":null,"description":"gitdiff-parser is a JavaScript/TypeScript library designed to programmatically parse the output of the standard `git diff` command into a structured data format. It aims for speed and reliability in processing various `git diff` outputs, including additions, deletions, modifications, and renames, extracting details like file paths, modes, hunks, and individual line changes. The current stable version is 0.3.1, indicating that it is in a pre-1.0 development phase where API changes might occur more frequently than in a major stable release. It provides a robust, typed interface for accessing file, hunk, and change-level details from raw diff strings, making it suitable for building tools that need to analyze or manipulate repository changes programmatically, such as code review tools, linters, or continuous integration systems.","language":"javascript","status":"active","version":"0.3.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gitdiff-parser","imports":["import gitDiffParser from 'gitdiff-parser';","import type { File, Hunk, Change } from 'gitdiff-parser';","import gitDiffParser from 'gitdiff-parser';\nconst files = gitDiffParser.parse(diffText);"]},{"cmd":"yarn add gitdiff-parser","imports":[]},{"cmd":"pnpm add gitdiff-parser","imports":[]}],"homepage":null,"github":"https://github.com/ecomfe/gitdiff-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gitdiff-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/gitdiff-parser/compatibility"}}