2 ms·
A codemod is an automated refactor. Codemods are typically done by writing scripts that manipulate the AST of code in files or by writing a regex to find and re
by charcircuit 4y ago
A codemod is an automated refactor. Codemods are typically done by writing scripts that manipulate the AST of code in files or by writing a regex to find and replace.
The name originates from an internal script at Facebook called codemod. It had a public open source fork if you are curious.
https://github.com/facebookarchive/codemod https://github.com/facebookarchive/codemod
- marssaxman 4y agoThanks for the explanation!