File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 26
26
"contributors" : [
27
27
" Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
28
28
],
29
+ "sideEffects" : false ,
29
30
"type" : " module" ,
30
- "module " : " ./ index.js" ,
31
+ "main " : " index.js" ,
31
32
"files" : [
32
33
" index.js"
33
34
],
56
57
},
57
58
"xo" : {
58
59
"prettier" : true ,
59
- "ignores" : [],
60
60
"rules" : {
61
61
"no-var" : " off" ,
62
62
"prefer-arrow-callback" : " off"
Original file line number Diff line number Diff line change 12
12
13
13
## Install
14
14
15
+ This package is [ ESM only] ( https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c ) :
16
+ Node 12+ is needed to use it and it must be ` import ` ed instead of ` require ` d.
17
+
15
18
[ npm] [ ] :
16
19
17
20
``` sh
18
21
npm install unist-util-position-from-estree
19
22
```
20
23
21
- Note that this package is ESM only: it must be imported instead of required.
22
-
23
24
## Use
24
25
25
26
``` js
@@ -53,8 +54,7 @@ Yields:
53
54
54
55
## API
55
56
56
- ` unist-util-position-from-estree ` exports the following identifiers:
57
- [ ` positionFromEstree ` ] ( #positionfromestreenode ) .
57
+ This package exports the following identifiers: ` positionFromEstree ` .
58
58
There is no default export.
59
59
60
60
### ` positionFromEstree(node) `
You can’t perform that action at this time.
0 commit comments