fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.04k stars 711 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.