I'm Kent C. Dodds. I help people make the world better through quality software. Ask me anything!

View other answers to this thread
Vivek Nayyar's photo

why would you choose to write a codemod in babel over something like jscodeshift? Do you think babel has a better api?

Kent C. Dodds's photo

Hi Vivek,

Exactly. I've tried using jscodeshift several times and always got lost. The babel API (the visitor pattern) is just so much simpler for me to work with, so that's what I go with :)