estree-walker-ts

πŸ₯‘ Simple utility for walking an ESTree-compliant AST, such as one generated by acorn.
121,230 8
Install
npm install estree-walker-ts
Latest Version:1.1.0
License:MIT
Last Updated:Feb 14, 2025
Links: GitHub  ·  npm
Maintainer: baiwusanyu

estree-walker-ts

πŸ₯‘ Simple utility for walking an ESTree-compliant AST, such as one generated by acorn.

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 πŸ‘ to provide me with an issue. Finally, thanks again to 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

Thanks

Related Packages

eddy-editor

A lightweight WYSIWYG text editor for Vue and React

3,184 3
vue-metamorph

Codemod framework for Vue files

3,458,690 121
app-location

A package to avoid repetition with Routes, Links and URLs, and reduce boilerplat...

34,498 19
server-side-render-resource

server side render resource dependence

22,685
onebuild

Used to bundle and serve manifests web component that build on any UI frameworks...

10,419 0

Version History

Version Released License
1.1.0 MIT
1.0.1 MIT
1.0.0 MIT
Pre-releases (2)
Version Released License
1.0.0-beta.2 MIT
1.0.0-beta.1 MIT