Unist Tree Traversal Utility

JSON →
library 5.1.0 ·javascript
verified May 27, 2026

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.

total hits 13
actors 6 distinct systems
last hit 4d ago AhrefsBot
GPTBot
5
Script
1
ChatGPT-User
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇵🇱 Poland