tcompare - Comprehensive Object Comparison

JSON →
library 9.3.1 ·javascript
verified May 27, 2026

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.

total hits 14
actors 5 distinct systems
last hit 2d ago AhrefsBot
GPTBot
5
MetaBot
4
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany