包详细信息

oxc-walker

oxc-project287kMIT0.4.0

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]

自述文件

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.