Skip to content

Commit 3513971

Browse files
committed
Refactor prose
1 parent 84acffc commit 3513971

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "unist-util-size",
33
"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",
55
"license": "MIT",
66
"keywords": [
77
"unist",
8+
"unist-util",
9+
"util",
10+
"utility",
811
"node",
912
"size",
1013
"count"

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
[npm][]:
1616

17-
```bash
17+
```sh
1818
npm install unist-util-size
1919
```
2020

21-
## Usage
21+
## Use
2222

2323
```js
2424
var h = require('hastscript')
@@ -56,6 +56,11 @@ Calculate the number of nodes in [`tree`][node].
5656
`number` — Number of [exclusive descendants][descendant] passing `test` in
5757
`tree`.
5858

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+
5964
## Contribute
6065

6166
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -94,7 +99,7 @@ abide by its terms.
9499

95100
[collective]: https://opencollective.com/unified
96101

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
98103

99104
[chat]: https://spectrum.chat/unified/syntax-tree
100105

0 commit comments

Comments
 (0)