|
18 | 18 | npm install unist-util-find-before
|
19 | 19 | ```
|
20 | 20 |
|
21 |
| -## Usage |
| 21 | +## Use |
22 | 22 |
|
23 | 23 | ```js
|
24 | 24 | var u = require('unist-builder')
|
@@ -74,8 +74,21 @@ Find the first [child][] before `index` (or `node`) in `parent`, that passes
|
74 | 74 | — Find all nodes before another node
|
75 | 75 | * [`unist-util-find-all-between`](https://github.com/mrzmmr/unist-util-find-all-between)
|
76 | 76 | — Find all nodes between two nodes
|
77 |
| -* [`unist-util-find`](https://github.com/blahah/unist-util-find) |
78 |
| - — Find nodes matching a predicate |
| 77 | +* [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit) |
| 78 | + — Recursively walk over nodes |
| 79 | +* [`unist-util-visit-parents`](https://github.com/syntax-tree/unist-util-visit-parents) |
| 80 | + — Like `visit`, but with a stack of parents |
| 81 | +* [`unist-util-filter`](https://github.com/eush77/unist-util-filter) |
| 82 | + — Create a new tree with all nodes that pass a test |
| 83 | +* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map) |
| 84 | + — Create a new tree with all nodes mapped by a given function |
| 85 | +* [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap) |
| 86 | + — Create a new tree by mapping (to an array) with the provided function and |
| 87 | + then flattening |
| 88 | +* [`unist-util-remove`](https://github.com/eush77/unist-util-remove) |
| 89 | + — Remove nodes from a tree that pass a test |
| 90 | +* [`unist-util-select`](https://github.com/eush77/unist-util-select) |
| 91 | + — Select nodes with CSS-like selectors |
79 | 92 |
|
80 | 93 | ## Contribute
|
81 | 94 |
|
@@ -115,7 +128,7 @@ abide by its terms.
|
115 | 128 |
|
116 | 129 | [collective]: https://opencollective.com/unified
|
117 | 130 |
|
118 |
| -[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg |
| 131 | +[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg |
119 | 132 |
|
120 | 133 | [chat]: https://spectrum.chat/unified/syntax-tree
|
121 | 134 |
|
|
0 commit comments