Skip to content

Commit 56febd2

Browse files
committed
Refactor prose
1 parent 56c265a commit 56febd2

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
{
22
"name": "unist-util-select",
33
"version": "3.0.0",
4-
"description": "Select unist nodes using css-like selectors",
4+
"description": "unist utility to select nodes with CSS-like selectors",
55
"license": "MIT",
66
"keywords": [
7+
"unist",
8+
"unist-util",
9+
"util",
10+
"utility",
11+
"visit",
12+
"tree",
13+
"ast",
14+
"node",
15+
"visit",
16+
"walk",
17+
"select",
18+
"selector",
719
"child",
820
"descendant",
921
"sibling",
@@ -12,19 +24,7 @@
1224
"expression",
1325
"filter",
1426
"find",
15-
"match",
16-
"ast",
17-
"mdast",
18-
"node",
19-
"retext",
20-
"select",
21-
"selector",
22-
"tree",
23-
"unist",
24-
"util",
25-
"utility",
26-
"visit",
27-
"walk"
27+
"match"
2828
],
2929
"repository": "syntax-tree/unist-util-select",
3030
"bugs": "https://github.com/syntax-tree/unist-util-select/issues",

readme.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,23 @@ Yields:
156156

157157
## Related
158158

159-
* [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter)
160-
— Create a new tree with all nodes that pass the given function
159+
* [`unist-util-filter`](https://github.com/eush77/unist-util-filter)
160+
— Create a new tree with all nodes that pass a test
161+
* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map)
162+
— Create a new tree with all nodes mapped by a given function
161163
* [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap)
162-
— Create a new tree by expanding a node into many
164+
— Create a new tree by mapping (to an array) with the provided function and
165+
then flattening
163166
* [`unist-util-is`](https://github.com/syntax-tree/unist-util-is)
164167
— Check if a node passes a test
165-
* [`unist-util-map`](https://github.com/syntax-tree/unist-util-map)
166-
— Create a new tree by mapping nodes
167168
* [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove)
168169
— Remove nodes from trees
169170
* [`unist-util-remove-position`](https://github.com/syntax-tree/unist-util-remove-position)
170171
— Remove positional info from trees
171172
* [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit)
172173
— Recursively walk over nodes
174+
* [`unist-util-visit-parents`](https://github.com/syntax-tree/unist-util-visit-parents)
175+
— Like `visit`, but with a stack of parents
173176
* [`unist-builder`](https://github.com/syntax-tree/unist-builder)
174177
— Helper for creating trees
175178

@@ -211,7 +214,7 @@ abide by its terms.
211214

212215
[collective]: https://opencollective.com/unified
213216

214-
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
217+
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg
215218

216219
[chat]: https://spectrum.chat/unified/syntax-tree
217220

0 commit comments

Comments
 (0)