{"library":"tcompare","type":"library","category":null,"description":"tcompare is a JavaScript/TypeScript library designed for deep object comparison, primarily intended for use within test frameworks. It provides a suite of comparison functions with varying levels of strictness, such as `match`, `same`, `strict`, `has`, and `matchOnly`, allowing developers to precisely define how objects should be evaluated against patterns. Beyond a simple boolean result, it generates human-readable diff strings and patch-style diffs, highlighting differences between actual and expected values. The library currently stands at version 9.3.1 and appears to maintain a release cadence in alignment with its parent project, `tap`, suggesting active development and maintenance. Its key differentiators include fine-grained control over comparison logic and robust diff generation capabilities, making it valuable for detailed assertion failure reporting.","language":"javascript","status":"active","version":"9.3.1","tags":["javascript","deepEqual","match","compare","object","comparison","diff","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tcompare","imports":["import { match } from 'tcompare'","import type { Result } from 'tcompare'","import { MatchOnly } from 'tcompare'"]},{"cmd":"yarn add tcompare","imports":[]},{"cmd":"pnpm add tcompare","imports":[]}],"homepage":null,"github":"https://github.com/tapjs/tapjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tcompare","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/tcompare/compatibility"}}