Codemud is a VSCode extension that makes it really easy to run jscodeshift scripts on any file. The use cases for it vary from testing jscodeshift scripts to performing automated code migrations when it's necessary a file-by-file analysis.
How to use?
To use Codemud, you first need the jscodeshift library installed:
$ npm install -g jscodeshift
Codemud will read codemods from the .codemud folder in your root directory (<project-root>/.codemud). You should put all of your transform modules there, each one in a separate file. Codemud will use the name of the files to generate the name of the codemuds. These can also be Typescript modules, in this case, that may be good to install the jscodeshift types inside your .codemud folder: