Preparing for system design interviews?  Try bugzed.com →

Unist Utility: Find All Nodes Before

JSON →
library 5.0.0 ·javascript
verified Jun 17, 2026

unist-util-find-all-before is a specialized utility within the unified ecosystem, designed to locate all nodes that appear before a specific child node or a given index within a parent node. It offers an optional `test` function, compatible with `unist-util-is`, to filter the results based on node properties. The current stable version is 5.0.0, which is ESM-only and requires Node.js 16 or newer. This package follows semver for its releases, with frequent updates addressing bug fixes, performance improvements, and keeping pace with Node.js and TypeScript advancements. Its key differentiator lies in its focused functionality for collecting multiple preceding nodes, making it a complementary tool for more general tree traversal utilities like `unist-util-visit` when precise positional node discovery is needed.

total hits 14
actors 4 distinct systems
last hit 14d ago ByteDance
ByteDance
5
GPTBot
4
Script
1

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