8
8
[ ![ Backers] [ backers-badge ]] [ collective ]
9
9
[ ![ Chat] [ chat-badge ]] [ chat ]
10
10
11
- Check if a [ ** Unist ** ] [ unist ] [ node] [ ] is [ ** generated** ] [ spec ] .
11
+ [ ** unist ** ] [ unist ] utility to check if a [ node] [ ] is [ * generated* ] [ generated ] .
12
12
13
- ## Installation
13
+ ## Install
14
14
15
15
[ npm] [ ] :
16
16
17
- ``` bash
17
+ ``` sh
18
18
npm install unist-util-generated
19
19
```
20
20
21
21
## Usage
22
22
23
- ``` javascript
23
+ ``` js
24
24
var generated = require (' unist-util-generated' )
25
25
26
26
generated ({}) // => true
27
27
28
- generated ({
29
- position: {start: {}, end: {}}
30
- }) // => true
28
+ generated ({position: {start: {}, end: {}}}) // => true
31
29
32
30
generated ({
33
- position: {
34
- start: {line: 1 , column: 1 },
35
- end: {line: 1 , column: 2 }
36
- }
31
+ position: {start: {line: 1 , column: 1 }, end: {line: 1 , column: 2 }}
37
32
}) // => false
38
33
```
39
34
40
35
## API
41
36
42
37
### ` generated(node) `
43
38
44
- Detect if [ ` node ` ] [ node ] is [ ** generated** ] [ spec ] .
39
+ Check if [ ` node ` ] [ node ] is [ * generated* ] [ generated ] .
45
40
46
41
###### Parameters
47
42
@@ -62,11 +57,13 @@ Detect if [`node`][node] is [**generated**][spec].
62
57
63
58
## Contribute
64
59
65
- See [ ` contributing.md ` in ` syntax-tree/unist ` ] [ contributing ] for ways to get
60
+ See [ ` contributing.md ` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
66
61
started.
62
+ See [ ` support.md ` ] [ support ] for ways to get help.
67
63
68
- This organisation has a [ Code of Conduct] [ coc ] . By interacting with this
69
- repository, organisation, or community you agree to abide by its terms.
64
+ This project has a [ Code of Conduct] [ coc ] .
65
+ By interacting with this repository, organisation, or community you agree to
66
+ abide by its terms.
70
67
71
68
## License
72
69
@@ -106,12 +103,14 @@ repository, organisation, or community you agree to abide by its terms.
106
103
107
104
[ author ] : https://wooorm.com
108
105
109
- [ unist ] : https://github.com/syntax-tree/unist
106
+ [ contributing ] : https://github.com/syntax-tree/.github/blob/master/contributing.md
110
107
111
- [ node ] : https://github.com/syntax-tree/unist#node
108
+ [ support ] : https://github.com/syntax-tree/.github/blob/master/support.md
112
109
113
- [ spec ] : https://github.com/syntax-tree/unist#location
110
+ [ coc ] : https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
114
111
115
- [ contributing ] : https://github.com/syntax-tree/unist/blob/master/contributing.md
112
+ [ unist ] : https://github.com/syntax-tree/unist
113
+
114
+ [ node ] : https://github.com/syntax-tree/unist#node
116
115
117
- [ coc ] : https://github.com/syntax-tree/unist/blob/master/code-of-conduct.md
116
+ [ generated ] : https://github.com/syntax-tree/unist#generated
0 commit comments