Googshift is a jscodeshift-based migration tool for converting Google Closure Compiler codebases (goog.require, goog.provide, goog.module) to ES6 modules. The current stable version is 0.9.10. It provides two main transforms: goog_provide_to_goog_module and goog_module_to_es6_module. This tool is essential for teams migrating legacy Closure Compiler projects to modern JavaScript module systems, offering a codemod approach that reduces manual effort compared to rewriting imports and exports by hand.
npm install googshiftNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic use of googshift transforms with jscodeshift to convert goog.provide to goog.module.
Review transformed output manually and fix any remaining references.
Run npm install jscodeshift as a dev dependency.
Install jscodeshift: npm install --save-dev jscodeshift
Ensure the transform file exports a function: module.exports = function(fileInfo, api) { ... }