Unist Utility to Find a Node

JSON →
library 3.0.0 ·javascript
verified May 27, 2026

unist-util-find is a focused utility within the Unist ecosystem (supporting mdast, hast, nlcst, etc.) designed to efficiently locate the first node in a Unist tree that satisfies a given condition. The current stable version is 3.0.0. Maintained by the unified collective, it typically follows Node.js LTS release cycles for major version updates. Its key differentiator lies in its simplicity for finding a single matching node, offering a lightweight alternative to more comprehensive tree-walking utilities like `unist-util-visit` when only the first match is needed. Conditions can be specified as a string, an object, or a predicate function, providing flexible search capabilities.

total hits 11
actors 4 distinct systems
last hit 6d ago AhrefsBot
GPTBot
5
Script
1
Search engines
1

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