2025-09-05 14:59:21 +08:00

1.5 KiB

oxc-walker

npm version npm downloads Github Actions Codecov

A wrapper around estree-walker that accepts an oxc AST and alternatively uses oxc-parser to parse code

Usage

Install package:

# npm
npm install oxc-walker

# pnpm
pnpm install oxc-walker
import { parseAndWalk, walk } from 'oxc-walker'

parseAndWalk(code, filename, (node) => {
  // node is typed correctly
})

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with ❤️

Published under MIT License.