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