@theworker02/diffnoun · JSR · 1.1.0
Structured file-level summaries for unified diffs.
Reduce patch hunks to the paths that were added, removed, or changed, with reusable statistics and filtering.
Canonical package: @theworker02/diffnoun
import { parseDiffEntries, statsFrom } from "@theworker02/diffnoun";
const entries = parseDiffEntries(patchText);
console.log(statsFrom(entries));