diffnoun mark

@theworker02/diffnoun · JSR · 1.1.0

diffnoun

Structured file-level summaries for unified diffs.

1.1.0JSRMITUniversal API

Overview

Reduce patch hunks to the paths that were added, removed, or changed, with reusable statistics and filtering.

Structured API

Canonical package: @theworker02/diffnoun

import { parseDiffEntries, statsFrom } from "@theworker02/diffnoun";
const entries = parseDiffEntries(patchText);
console.log(statsFrom(entries));