{"library":"unist-util-visit","type":"library","category":null,"description":"unist-util-visit is a fundamental utility for traversing unist (Universal Syntax Tree) compliant abstract syntax trees, which are commonly used in remark, retext, and rehype for processing Markdown, natural language, and HTML. It allows developers to walk a tree and apply a `visitor` function to each node (or specific nodes matching a test) encountered during traversal. The current stable version is 5.1.0, last published 3 months ago (as of January 2026), and the project exhibits an active release cadence with frequent patch/minor updates and occasional major versions that introduce breaking changes, often related to Node.js environment requirements or ESM adoption. A key differentiator is its focus on simple node visiting, contrasting with `unist-util-visit-parents` which provides access to the full parent stack during traversal. This package is ESM-only and requires Node.js 16 or newer.","language":"javascript","status":"active","version":"5.1.0","tags":["javascript","unist","unist-util","util","utility","remark","retext","rehype","mdast","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-util-visit","imports":["import { visit } from 'unist-util-visit'","import { CONTINUE, EXIT, SKIP } from 'unist-util-visit'","import type { Visitor } from 'unist-util-visit'","import type { Test } from 'unist-util-visit'"]},{"cmd":"yarn add unist-util-visit","imports":[]},{"cmd":"pnpm add unist-util-visit","imports":[]}],"homepage":"https://unifiedjs.com","github":"https://github.com/syntax-tree/unist-util-visit","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-util-visit","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-visit/compatibility"}}