{"library":"diffpatch","type":"library","category":null,"description":"A JavaScript library for diffing and patching plain objects and arrays, including nested structures. Current stable version is 0.6.0, released as an ES module with TypeScript type definitions. It uses LCS (Longest Common Subsequence) for smart array diffing, supports reverse deltas, unpatching, and optional output formatters. Optionally leverages google-diff-match-patch for long text diffs. Compared to similar libraries, diffpatch focuses on pure JSON delta format and low footprint (~16KB min+gzipped), and requires an objectHash function for object identity matching in arrays.","language":"javascript","status":"active","version":"0.6.0","tags":["javascript","json","diff","patch","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install diffpatch","imports":["import { DiffPatcher } from 'diffpatch'","import { dateReviver } from 'diffpatch'","import { formatters } from 'diffpatch'","import { DiffPatcher } from 'diffpatch'; const patcher = new DiffPatcher()"]},{"cmd":"yarn add diffpatch","imports":[]},{"cmd":"pnpm add diffpatch","imports":[]}],"homepage":null,"github":"https://github.com/bpmn-io/diffpatch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/diffpatch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}