facebook / jscodeshift

A JavaScript codemod toolkit.
https://jscodeshift.com
MIT License
9.22k stars 477 forks source link

Is there any way to obtain the return content of the transform #525

Open fengluoX opened 1 year ago

fengluoX commented 1 year ago

for instance: image Sometimes we may not need to change the ast, but traverse the ast to collect some required content. I know that there are many libraries that can do this, such as recast, babel trap. My project uses jscodeshift. I hope to maintain consistent ast operations. Do you have other library recommendations or plans in this regard? Thank you