1010
1111[ ** unist** ] [ unist ] utility to find nodes after another node.
1212
13- ## Installation
13+ ## Install
1414
1515[ npm] [ ] :
1616
17- ``` bash
17+ ``` sh
1818npm install unist-util-find-all-after
1919```
2020
21- ## Usage
21+ ## Use
2222
2323``` js
2424var u = require (' unist-builder' )
@@ -41,18 +41,18 @@ Yields:
4141
4242``` js
4343[
44- { type: ' leaf' , value: ' leaf 4' },
45- { type: ' leaf' , value: ' leaf 6' },
46- { type: ' leaf' , value: ' leaf 7' }
44+ {type: ' leaf' , value: ' leaf 4' },
45+ {type: ' leaf' , value: ' leaf 6' },
46+ {type: ' leaf' , value: ' leaf 7' }
4747]
4848```
4949
5050## API
5151
5252### ` findAllAfter(parent, node|index[, test]) `
5353
54- Find all children after ` index ` (or ` node ` ) in ` parent ` , that passes ` test `
55- (when given).
54+ Find all children after ` index ` (or ` node ` ) in ` parent ` that pass ` test ` (when
55+ given).
5656
5757###### Parameters
5858
@@ -68,25 +68,40 @@ Find all children after `index` (or `node`) in `parent`, that passes `test`
6868
6969## Related
7070
71+ * [ ` unist-util-visit ` ] ( https://github.com/syntax-tree/unist-util-visit )
72+ — Recursively walk over nodes
73+ * [ ` unist-util-visit-parents ` ] ( https://github.com/syntax-tree/unist-util-visit-parents )
74+ — Like ` visit ` , but with a stack of parents
75+ * [ ` unist-util-filter ` ] ( https://github.com/eush77/unist-util-filter )
76+ — Create a new tree with all nodes that pass a test
77+ * [ ` unist-util-map ` ] ( https://github.com/syntax-tree/unist-util-map )
78+ — Create a new tree with all nodes mapped by a given function
79+ * [ ` unist-util-flatmap ` ] ( https://gitlab.com/staltz/unist-util-flatmap )
80+ — Create a new tree by mapping (to an array) with the provided function and
81+ then flattening
7182* [ ` unist-util-find-after ` ] ( https://github.com/syntax-tree/unist-util-find-after )
7283 — Find a node after another node
7384* [ ` unist-util-find-before ` ] ( https://github.com/syntax-tree/unist-util-find-before )
7485 — Find a node before another node
86+ * [ ` unist-util-find-all-after ` ] ( https://github.com/syntax-tree/unist-util-find-all-after )
87+ — Find all nodes after another node
7588* [ ` unist-util-find-all-before ` ] ( https://github.com/syntax-tree/unist-util-find-all-before )
7689 — Find all nodes before another node
7790* [ ` unist-util-find-all-between ` ] ( https://github.com/mrzmmr/unist-util-find-all-between )
7891 — Find all nodes between two nodes
79- * [ ` unist-util-find ` ] ( https://github.com/blahah/unist-util-find )
80- — Find nodes matching a predicate
92+ * [ ` unist-util-remove ` ] ( https://github.com/eush77/unist-util-remove )
93+ — Remove nodes from a tree that pass a test
94+ * [ ` unist-util-select ` ] ( https://github.com/eush77/unist-util-select )
95+ — Select nodes with CSS-like selectors
8196
8297## Contribute
8398
8499See [ ` contributing.md ` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
85100started.
86101See [ ` support.md ` ] [ support ] for ways to get help.
87102
88- This project has a [ Code of Conduct ] [ coc ] .
89- By interacting with this repository, organisation , or community you agree to
103+ This project has a [ code of conduct ] [ coc ] .
104+ By interacting with this repository, organization , or community you agree to
90105abide by its terms.
91106
92107## License
0 commit comments