Never mind jscodemods, I'm fascinated to learn that the Linux kernel has had a semantic patch tool for years! https://lwn.net/Articles/380835/