Skip to content

Commit 137c23f

Browse files
committed
Refactor prose
1 parent ada0dc5 commit 137c23f

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "unist-util-parents",
33
"version": "1.0.2",
4-
"description": "Add a parent reference for each AST node",
4+
"description": "utility to add references to parents on nodes in a tree",
55
"license": "MIT",
66
"keywords": [
77
"unist",
8-
"remark",
9-
"rehype",
10-
"retext",
8+
"unist-util",
119
"util",
10+
"utility",
1211
"parent",
1312
"parents",
1413
"node",

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ which it originated.
2121

2222
[npm][]:
2323

24-
```bash
24+
```sh
2525
npm install unist-util-parents
2626
```
2727

28-
## Usage
28+
## Use
2929

30-
```javascript
30+
```js
3131
var u = require('unist-builder')
3232
var parents = require('unist-util-parents')
3333

@@ -61,7 +61,7 @@ console.log(chain)
6161

6262
Yields:
6363

64-
```javascript
64+
```js
6565
[ 'root', 'node', 'node', 'node', 'leaf' ]
6666
```
6767

@@ -76,7 +76,7 @@ all of its nodes:
7676
* `node` — link to the original node
7777

7878
None of these properties are enumerable, and the original tree is *not changed*.
79-
This means you can `JSON.stringify` the wrapped tree and it is just the same.
79+
This means you can `JSON.stringify` the wrapped tree and it’s the same.
8080

8181
`wrapped.children` returns array of wrapped child nodes, so that any
8282
recursive algorithm will work on a wrapped tree just as well.

0 commit comments

Comments
 (0)