Tree Transformations
AST Transformations

AST Transformations

Constant Folding

See an example of Constant Folding using espree and estraverse.

Master the AST Lectures

See a set of lectures about AST transformations "Master the AST lecture series" by Yonatan Mevorach

Codemods

Codemods was a tool/library developed by FaceBook to assist with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. It is now deprecated and archived.

ast-types

See chapter ast-types

Recast

See chapter JSCodeshift and Recast

JSCodeShift

See also section JSCodeshift

References

See the section References