File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unist-util-size" ,
3
3
"version" : " 1.1.1" ,
4
- "description" : " Calculate the number of nodes in a unist tree" ,
4
+ "description" : " unist utility to calculate the number of nodes in a tree" ,
5
5
"license" : " MIT" ,
6
6
"keywords" : [
7
7
" unist" ,
8
+ " unist-util" ,
9
+ " util" ,
10
+ " utility" ,
8
11
" node" ,
9
12
" size" ,
10
13
" count"
Original file line number Diff line number Diff line change 14
14
15
15
[ npm] [ ] :
16
16
17
- ``` bash
17
+ ``` sh
18
18
npm install unist-util-size
19
19
```
20
20
21
- ## Usage
21
+ ## Use
22
22
23
23
``` js
24
24
var h = require (' hastscript' )
@@ -56,6 +56,11 @@ Calculate the number of nodes in [`tree`][node].
56
56
` number ` — Number of [ exclusive descendants] [ descendant ] passing ` test ` in
57
57
` tree ` .
58
58
59
+ ## Related
60
+
61
+ * [ ` unist-util-source ` ] ( https://github.com/syntax-tree/unist-util-source )
62
+ — Get the source of a node or position
63
+
59
64
## Contribute
60
65
61
66
See [ ` contributing.md ` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
@@ -94,7 +99,7 @@ abide by its terms.
94
99
95
100
[ collective ] : https://opencollective.com/unified
96
101
97
- [ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum -7b16ff.svg
102
+ [ chat-badge ] : https://img.shields.io/badge/chat-spectrum -7b16ff.svg
98
103
99
104
[ chat ] : https://spectrum.chat/unified/syntax-tree
100
105
You can’t perform that action at this time.
0 commit comments