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

View other answers to this thread

Learn Something New Everyday,
Connect With The Best Developers!

& 500k+ others use Hashnode actively.

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