Skip to content

Commit 7914709

Browse files
committed
Refactor prose
1 parent 6b88255 commit 7914709

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"name": "unist-util-index",
33
"version": "1.1.1",
4-
"description": "Index Unist nodes by property or computed key",
4+
"description": "unist utility to index property values or computed keys to nodes",
55
"license": "MIT",
66
"keywords": [
7-
"ast",
7+
"unist",
8+
"unist-util",
9+
"util",
10+
"utility",
811
"computed",
912
"filter",
10-
"function",
1113
"index",
1214
"indexing",
1315
"key",
@@ -17,8 +19,7 @@
1719
"property",
1820
"subset",
1921
"tree",
20-
"unist",
21-
"util"
22+
"ast"
2223
],
2324
"repository": "syntax-tree/unist-util-index",
2425
"bugs": "https://github.com/syntax-tree/unist-util-index/issues",

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ computed keys back to nodes.
1919
npm install unist-util-index
2020
```
2121

22-
## Usage
22+
## Use
2323

2424
```js
2525
var fs = require('fs')
@@ -52,11 +52,11 @@ Yields:
5252

5353
### `Index([tree[, test], ]prop|keyFn)`
5454

55-
Create an index data structure that maps keys (calculated by `keyFn` function
56-
or the values at `prop` in each node) to a list of nodes.
55+
Create an index data structure that maps keys (calculated by `keyFn` function or
56+
the values at `prop` in each node) to a list of nodes.
5757

58-
If `tree` is given, the index is initialised with all nodes, optionally
59-
filtered by `test`.
58+
If `tree` is given, the index is initialized with all nodes, optionally filtered
59+
by `test`.
6060

6161
###### Signatures
6262

0 commit comments

Comments
 (0)