Skip to content

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

License

Notifications You must be signed in to change notification settings

danielroe/oxc-walker

Repository files navigation

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'

paresAndWalk(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.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published