1010
1111[ ** unist** ] [ unist ] utility to find a node after another node.
1212
13- ## Installation
13+ ## Install
1414
1515[ npm] [ ] :
1616
1717``` sh
1818npm install unist-util-find-after
1919```
2020
21- ## Usage
21+ ## Use
2222
2323``` js
2424var u = require (' unist-builder' )
@@ -40,7 +40,7 @@ console.log(findAfter(tree, 1, 'node'))
4040Yields:
4141
4242``` js
43- { type: ' node' , children: [ { type: ' leaf' , value: ' leaf 5' } ] }
43+ {type: ' node' , children: [{ type: ' leaf' , value: ' leaf 5' }] }
4444```
4545
4646## API
@@ -64,6 +64,17 @@ Find the first [child][] after `index` (or `node`) in `parent`, that passes
6464
6565## Related
6666
67+ * [ ` unist-util-visit ` ] ( https://github.com/syntax-tree/unist-util-visit )
68+ — Recursively walk over nodes
69+ * [ ` unist-util-visit-parents ` ] ( https://github.com/syntax-tree/unist-util-visit-parents )
70+ — Like ` visit ` , but with a stack of parents
71+ * [ ` unist-util-filter ` ] ( https://github.com/eush77/unist-util-filter )
72+ — Create a new tree with all nodes that pass a test
73+ * [ ` unist-util-map ` ] ( https://github.com/syntax-tree/unist-util-map )
74+ — Create a new tree with all nodes mapped by a given function
75+ * [ ` unist-util-flatmap ` ] ( https://gitlab.com/staltz/unist-util-flatmap )
76+ — Create a new tree by mapping (to an array) with the provided function and
77+ then flattening
6778* [ ` unist-util-find-before ` ] ( https://github.com/syntax-tree/unist-util-find-before )
6879 — Find a node before another node
6980* [ ` unist-util-find-all-after ` ] ( https://github.com/syntax-tree/unist-util-find-all-after )
@@ -72,8 +83,10 @@ Find the first [child][] after `index` (or `node`) in `parent`, that passes
7283 — Find all nodes before another node
7384* [ ` unist-util-find-all-between ` ] ( https://github.com/mrzmmr/unist-util-find-all-between )
7485 — Find all nodes between two nodes
75- * [ ` unist-util-find ` ] ( https://github.com/blahah/unist-util-find )
76- — Find nodes matching a predicate
86+ * [ ` unist-util-remove ` ] ( https://github.com/eush77/unist-util-remove )
87+ — Remove nodes from a tree that pass a test
88+ * [ ` unist-util-select ` ] ( https://github.com/eush77/unist-util-select )
89+ — Select nodes with CSS-like selectors
7790
7891## Contribute
7992
@@ -113,7 +126,7 @@ abide by its terms.
113126
114127[ collective ] : https://opencollective.com/unified
115128
116- [ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum -7b16ff.svg
129+ [ chat-badge ] : https://img.shields.io/badge/chat-spectrum -7b16ff.svg
117130
118131[ chat ] : https://spectrum.chat/unified/syntax-tree
119132
0 commit comments