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

View original 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

Improving the world with quality software 路 Husband, Father, Latter-day Saint, Teacher, OSS, GDE 路 http://testingjavascript.com @eggheadio

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 :)