A CLI tool that automates migrating React/Next.js projects from Styled Components to CSS Modules by converting styles.js files to styles.module.css, extracting styles, refactoring JSX to use CSS class names, and removing Styled Component imports. Stable version 2.0.0, no recent updates (likely abandoned). Aids large codebase transitions with one command, but lacks documentation and error handling for edge cases like dynamic styles, themes, or TypeScript.
npm install js-css-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global installation and basic migration commands for a folder or default directory.
Consider using codemods like @emotion/css or manual migration.
Review generated files manually; the tool may produce syntactically incorrect CSS or JSX.
Always specify an absolute or relative path to the folder containing components.
Convert .tsx to .jsx before migration or manually refactor.
Commit or stash changes before running the command.
npm install -g js-css-migration or use npx js-css-migration
Replace dynamic styles manually before migration, or post-process CSS.
Check folder path and ensure components are present.