File tree 2 files changed +11
-10
lines changed 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unist-util-index" ,
3
3
"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 " ,
5
5
"license" : " MIT" ,
6
6
"keywords" : [
7
- " ast" ,
7
+ " unist" ,
8
+ " unist-util" ,
9
+ " util" ,
10
+ " utility" ,
8
11
" computed" ,
9
12
" filter" ,
10
- " function" ,
11
13
" index" ,
12
14
" indexing" ,
13
15
" key" ,
17
19
" property" ,
18
20
" subset" ,
19
21
" tree" ,
20
- " unist" ,
21
- " util"
22
+ " ast"
22
23
],
23
24
"repository" : " syntax-tree/unist-util-index" ,
24
25
"bugs" : " https://github.com/syntax-tree/unist-util-index/issues" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ computed keys back to nodes.
19
19
npm install unist-util-index
20
20
```
21
21
22
- ## Usage
22
+ ## Use
23
23
24
24
``` js
25
25
var fs = require (' fs' )
@@ -52,11 +52,11 @@ Yields:
52
52
53
53
### ` Index([tree[, test], ]prop|keyFn) `
54
54
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.
57
57
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 ` .
60
60
61
61
###### Signatures
62
62
You can’t perform that action at this time.
0 commit comments