estree-walker-ts
English | 中文
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 estree-walker
and the author Rich-Harris
.
Install
npm i estree-walker-ts -D
或
yarn add estree-walker-ts -D
或
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