{"library":"unist-util-is","type":"library","category":null,"description":"unist-util-is is a lightweight utility within the unified (remark/rehype) ecosystem designed to check if a unist (Universal Syntax Tree) node satisfies a given condition. It provides the `is` function to test nodes against various criteria, including their `type`, specific properties, or custom predicate functions. Additionally, it offers `convert` to pre-process tests, which is beneficial for performance when repeatedly checking multiple nodes. The package is currently stable at version 6.0.1 and maintains an active development pace, releasing updates for new Node.js versions and refining type definitions, generally aligning with the broader unified ecosystem's release cadence. It serves as a focused tool for basic node matching, distinguishing itself from `hast-util-is-element` (which targets HAST elements) and providing a simpler alternative to the more complex CSS selector-based matching of `unist-util-select`. Full TypeScript type definitions are included.","language":"javascript","status":"active","version":"6.0.1","tags":["javascript","unist","unist-util","util","utility","tree","node","is","equal","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-util-is","imports":["import { is } from 'unist-util-is'","import { convert } from 'unist-util-is'","import type { Test, Check } from 'unist-util-is'"]},{"cmd":"yarn add unist-util-is","imports":[]},{"cmd":"pnpm add unist-util-is","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/unist-util-is","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-util-is","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/unist-util-is/compatibility"}}