jscodeshift is a toolkit for running codemods over multiple JS files.
See also js-codemod, which contains a collection of codemod scripts based on jscodeshift.