unist-util-visit@5.1.0
// unist utility to visit nodes
$ npm install unist-util-visit
downloads/wk
54,605,308
license
MIT
version
5.1.0
published
Jan 22, 2026
What is unist-util-visit?
unist-util-visit is a utility for traversing and inspecting nodes in unist syntax trees, which are used by tools like remark (Markdown), rehype (HTML), and retext (natural language). Developers use it to walk through tree structures and apply functions to specific nodes, making it essential for building plugins and transformations that process Markdown, HTML, XML, or other text formats. It provides a simple API for visiting nodes based on type, depth, or custom filters.
Links
Keywords
Dependencies (3)
Maintainers
wooorm, kmck