Skip to content

Commit 4ba2fb2

Browse files
committed
Refactor prose
1 parent cbc9501 commit 4ba2fb2

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
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-all-before",
33
"version": "2.0.4",
4-
"description": "Utility to find nodes before another node",
4+
"description": "unist utility to find nodes before another node",
55
"license": "MIT",
66
"keywords": [
77
"unist",
8+
"unist-util",
9+
"util",
10+
"utility",
811
"node",
912
"find",
10-
"before",
11-
"util",
12-
"utility"
13+
"before"
1314
],
1415
"repository": "syntax-tree/unist-util-find-all-before",
1516
"bugs": "https://github.com/syntax-tree/unist-util-find-all-before/issues",

readme.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
npm install unist-util-find-all-before
1919
```
2020

21-
## Usage
21+
## Use
2222

2323
```js
2424
var u = require('unist-builder')
@@ -77,8 +77,21 @@ Find the first child before `index` (or `node`) in `parent`, that passes `test`
7777
— Find all nodes after another node
7878
* [`unist-util-find-all-between`](https://github.com/mrzmmr/unist-util-find-all-between)
7979
— 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
8295

8396
## Contribute
8497

@@ -118,7 +131,7 @@ abide by its terms.
118131

119132
[collective]: https://opencollective.com/unified
120133

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
122135

123136
[chat]: https://spectrum.chat/unified/syntax-tree
124137

0 commit comments

Comments
 (0)