{"id":41227550,"url":"https://github.com/andriyor/css-modules-migration","last_synced_at":"2026-01-23T00:38:18.728Z","repository":{"id":91097274,"uuid":"597457864","full_name":"andriyor/css-modules-migration","owner":"andriyor","description":"Experiment with migrattion from css to css-modules","archived":false,"fork":false,"pushed_at":"2023-09-29T08:24:12.000Z","size":216,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T17:48:34.666Z","etag":null,"topics":["ast","css","css-modules","migration","ts-morph"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andriyor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-04T16:05:59.000Z","updated_at":"2024-08-24T21:16:00.000Z","dependencies_parsed_at":"2023-09-29T08:42:57.948Z","dependency_job_id":null,"html_url":"https://github.com/andriyor/css-modules-migration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andriyor/css-modules-migration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriyor%2Fcss-modules-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriyor%2Fcss-modules-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriyor%2Fcss-modules-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriyor%2Fcss-modules-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andriyor","download_url":"https://codeload.github.com/andriyor/css-modules-migration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andriyor%2Fcss-modules-migration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28676145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","css","css-modules","migration","ts-morph"],"created_at":"2026-01-23T00:38:18.111Z","updated_at":"2026-01-23T00:38:18.719Z","avatar_url":"https://github.com/andriyor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# migrate-to-css-modules\n\nIdea of project based on this article [How we migrated entirely to CSS Modules using codemods and Sourcegraph Code Insights](https://about.sourcegraph.com/blog/migrating-to-css-modules-with-codemods-and-code-insights)\n\n[sourcegraph/codemod: A collection of codemods powered by TS-Morph and PostCSS](https://github.com/sourcegraph/codemod)\n\n[add clsx as option for className by andriyor · Pull Request #189 · sourcegraph/codemod](https://github.com/sourcegraph/codemod/pull/189)\n\n## Supported migrations\n\n- [x] `import './App.scss';` to `import styles from './App.module.scss';`\n- [x] `className='App'` to `className={styles.App}`\n- [x] `id='idSelector'` to `id={styles.idSelector}`\n- [x] `className='selector1 selector2'` to `` className={`${styles.selector1} ${styles.selector2}`} ``\n- [x] `className='d-flex menu'` to `` className={`d-flex ${styles.menu}`} ``\n- [x] `className={[\"listRule1\", \"listRule2\"].join(\" \")}` to `className={[styles.listRule1, styles.listRule2].join(\" \")}`\n- [x] `className=\"kebab-case\"` to `className={styles[\"kebab-case\"]}`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandriyor%2Fcss-modules-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandriyor%2Fcss-modules-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandriyor%2Fcss-modules-migration/lists"}