Skip to content

Commit 6eddf99

Browse files
committed
Refactor prose
1 parent 680d023 commit 6eddf99

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "unist-util-find-after",
33
"version": "2.0.4",
4-
"description": "Utility to find a node after another node",
4+
"description": "unist utility to find a node after another node",
55
"license": "MIT",
66
"keywords": [
77
"unist",
8+
"unist-util",
9+
"util",
10+
"utility",
811
"node",
912
"find",
10-
"after",
11-
"util",
12-
"utility"
13+
"after"
1314
],
1415
"repository": "syntax-tree/unist-util-find-after",
1516
"bugs": "https://github.com/syntax-tree/unist-util-find-after/issues",

readme.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
[**unist**][unist] utility to find a node after another node.
1212

13-
## Installation
13+
## Install
1414

1515
[npm][]:
1616

1717
```sh
1818
npm install unist-util-find-after
1919
```
2020

21-
## Usage
21+
## Use
2222

2323
```js
2424
var u = require('unist-builder')
@@ -40,7 +40,7 @@ console.log(findAfter(tree, 1, 'node'))
4040
Yields:
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

Comments
 (0)