A wrapper around
estree-walker
that accepts anoxc
AST and alternatively usesoxc-parser
to parse code
Install package:
# npm
npm install oxc-walker
# pnpm
pnpm install oxc-walker
import { parseAndWalk, walk } from 'oxc-walker'
paresAndWalk(code, filename, (node) => {
// node is typed correctly
})
- Clone this repository
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
Made with ❤️
Published under MIT License.