{"id":19949385,"url":"https://github.com/macklinu/codemods","last_synced_at":"2026-05-15T07:32:21.917Z","repository":{"id":148762639,"uuid":"133097922","full_name":"macklinu/codemods","owner":"macklinu","description":"A collection of JavaScript codemod scripts for easier code migration","archived":false,"fork":false,"pushed_at":"2019-04-16T19:55:09.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T14:32:34.498Z","etag":null,"topics":["codemod","jscodeshift"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/macklinu.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-11T23:33:09.000Z","updated_at":"2019-04-16T19:55:11.000Z","dependencies_parsed_at":"2023-05-28T21:30:28.374Z","dependency_job_id":null,"html_url":"https://github.com/macklinu/codemods","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/macklinu/codemods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fcodemods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fcodemods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fcodemods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fcodemods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macklinu","download_url":"https://codeload.github.com/macklinu/codemods/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macklinu%2Fcodemods/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33057852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["codemod","jscodeshift"],"created_at":"2024-11-13T00:45:00.366Z","updated_at":"2026-05-15T07:32:21.912Z","avatar_url":"https://github.com/macklinu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @macklinu/codemods\n\n\u003e A collection of JavaScript and TypeScript codemod scripts for easier code migration\n\n## Scripts\n\nAll scripts should be executed with Node \u003e=22.\n\n### `requirejs-to-commonjs`\n\nConverts AMD modules (`define()`) to CommonJS modules (`module.exports`). This\ncodemod currently only handles converting AMD `define()` statements - global AMD\n`require()` modification is not supported.\n\nTo run:\n\n```sh\nnpx jscodeshift \u003cfiles-or-glob\u003e -t https://raw.githubusercontent.com/macklinu/codemods/master/src/requirejs-to-commonjs.js\n```\n\n## Development\n\n### `bun run test`\n\nRuns the [Vitest](https://vitest.dev/) test suite.\n\n### `bun run lint`\n\nRuns [ESLint](https://eslint.org/).\n\n## Contributing\n\nIf you use any of these codemods and have bug reports / feature requests, please\n[open an issue](https://github.com/macklinu/codemods/issues/new)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacklinu%2Fcodemods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacklinu%2Fcodemods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacklinu%2Fcodemods/lists"}