File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ computed keys back to nodes.
1919npm install unist-util-index
2020```
2121
22- ## Usage
22+ ## Use
2323
2424``` js
2525var 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
You can’t perform that action at this time.
0 commit comments