fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.2k stars 739 forks source link

Feature request: jscodeshift output from arbitrary input #687

Open villesau opened 1 year ago

villesau commented 1 year ago

AST explorer is (most?) often used when building jscodeshift codemods. Would be great if the tool supported something like this:

input: a => b output:

j.arrowFunctionExpression(
  [j.identifier('a')],
  j.identifier('b')
)

This would speed up the development of jscodeshift codemods enormously.

lxx2013 commented 1 week ago

now you can use AI to do this work. such as chatGPT or theb.ai