Skip to content

Commit eb1b483

Browse files
committed
Refactor prose
1 parent 1286198 commit eb1b483

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-before",
33
"version": "2.0.4",
4-
"description": "Utility to find a node before another node",
4+
"description": "unist utility to find a node 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-before",
1516
"bugs": "https://github.com/syntax-tree/unist-util-find-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-before
1919
```
2020

21-
## Usage
21+
## Use
2222

2323
```js
2424
var u = require('unist-builder')
@@ -74,8 +74,21 @@ Find the first [child][] before `index` (or `node`) in `parent`, that passes
7474
— Find all nodes before another node
7575
* [`unist-util-find-all-between`](https://github.com/mrzmmr/unist-util-find-all-between)
7676
— Find all nodes between two nodes
77-
* [`unist-util-find`](https://github.com/blahah/unist-util-find)
78-
— Find nodes matching a predicate
77+
* [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit)
78+
— Recursively walk over nodes
79+
* [`unist-util-visit-parents`](https://github.com/syntax-tree/unist-util-visit-parents)
80+
— Like `visit`, but with a stack of parents
81+
* [`unist-util-filter`](https://github.com/eush77/unist-util-filter)
82+
— Create a new tree with all nodes that pass a test
83+
* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map)
84+
— Create a new tree with all nodes mapped by a given function
85+
* [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap)
86+
— Create a new tree by mapping (to an array) with the provided function and
87+
then flattening
88+
* [`unist-util-remove`](https://github.com/eush77/unist-util-remove)
89+
— Remove nodes from a tree that pass a test
90+
* [`unist-util-select`](https://github.com/eush77/unist-util-select)
91+
— Select nodes with CSS-like selectors
7992

8093
## Contribute
8194

@@ -115,7 +128,7 @@ abide by its terms.
115128

116129
[collective]: https://opencollective.com/unified
117130

118-
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
131+
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg
119132

120133
[chat]: https://spectrum.chat/unified/syntax-tree
121134

0 commit comments

Comments
 (0)