estree-walker-ts
Version:
π₯ Simple utility for walking an ESTree-compliant AST, such as one generated by acorn.
39 lines (30 loc) β’ 1.3 kB
Markdown
# estree-walker-ts
π₯ Simple utility for walking an [ESTree](https://github.com/estree/estree)-compliant AST, such as one generated by [acorn](https://github.com/marijnh/acorn).
English | [δΈζ](https://github.com/baiwusanyu-c/estree-walker-ts/blob/master/README.ZH-CN.md)
## Feature
* π§© Support esm and cjs formats
* π Written in typescript
* β° Support estree ast traversal
* β‘ Acorn's ast support
## Why is estree-walker-ts ?
The reason is simple, `estree-walker` currently does not support the use of cjs format, and the author does not seem to want to support this format, so I wrote it using typescript
And maintain it by yourself, its content is almost the same as that of `estree-walker`, and it also provides simple support for its type, but forgive me, I am not a typescript expert,
So if you have any problems using it, welcome π to provide me with an issue.
Finally, thanks again to `estree-walker` and the author `Rich-Harris`.
## Install
```bash
npm i estree-walker-ts -D
```
ζ
```bash
yarn add estree-walker-ts -D
```
ζ
```bash
pnpm add estree-walker-ts -D
```
## Usage
It is used the same as `estree-walker`
> https://github.com/Rich-Harris/estree-walker/blob/master/README.md
## Thanks
* [estree-walker](https://github.com/Rich-Harris/estree-walker)