Introduction to AST's and Codemods

@chrislaughlin

What we will "learn"

  • What is an AST?
  • What are they used for?
  • Lets write a codemod
  • ?????
  • Profit!

What is an AST?

const

foo

=

'bar'

;

Program/File

Variable Declaration

Identifier

Literal

Variable Declarator

What are they used for?

Codemods

Links