{"library":"unist-util-assert","type":"library","category":null,"description":"unist-util-assert is a utility package within the unified/syntax-tree ecosystem designed to validate unist (Universal Syntax Tree) nodes. It provides functions to assert that given `tree` or `node` structures conform to the unist specification, including checks for parent, literal, and void nodes, and their children. The current stable version is 4.0.0. This package maintains an active release cadence, reflecting ongoing development and compatibility updates within the broader unified collective. Key differentiators include its tight integration with the unist specification, robust type checking (it ships with TypeScript types), and its focused approach to node validation, contrasting with more general-purpose assertion libraries or similar utilities for specific node types like mdast or hast.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","unist","unist-util","util","utility","assert","check","test","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-util-assert","imports":["import { assert } from 'unist-util-assert'","import { parent } from 'unist-util-assert'","import { AssertionError } from 'unist-util-assert'"]},{"cmd":"yarn add unist-util-assert","imports":[]},{"cmd":"pnpm add unist-util-assert","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/unist-util-assert","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-util-assert","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-assert/compatibility"}}