{"library":"tmatch","type":"library","category":null,"description":"tmatch is a utility module designed to facilitate deep and flexible object matching, primarily used by the `t.match()` method in the `tap` test framework. Currently at version 5.0.0, it provides a comprehensive algorithm for comparing a target value against a pattern, supporting various data types including objects, arrays, regular expressions, dates, buffers, and constructor functions. Its matching logic goes beyond shallow equality, handling nested structures and specific type-based comparisons. For instance, it can match strings against regular expressions, check if an object is an `instanceof` a given constructor, or assert the absence of a property using `{propertyName: null}`. While its release cadence is tied to `tap`, it is generally stable. Key differentiators include its detailed, multi-step matching algorithm that accounts for many edge cases and its utility in robust assertion scenarios, offering a more nuanced comparison than standard deep equality checks.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tmatch","imports":["import tmatch from 'tmatch';","const tmatch = require('tmatch');"]},{"cmd":"yarn add tmatch","imports":[]},{"cmd":"pnpm add tmatch","imports":[]}],"homepage":null,"github":"https://github.com/isaacs/tmatch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tmatch","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/tmatch/compatibility"}}