{"id":29020225,"url":"https://github.com/openlayers/codemod","last_synced_at":"2026-03-06T21:33:10.370Z","repository":{"id":268148528,"uuid":"903132383","full_name":"openlayers/codemod","owner":"openlayers","description":"Codemods to assist with upgrades","archived":false,"fork":false,"pushed_at":"2025-12-12T15:53:45.000Z","size":280,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-14T07:05:28.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/openlayers.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-13T22:32:00.000Z","updated_at":"2025-12-12T15:53:48.000Z","dependencies_parsed_at":"2024-12-14T18:23:26.550Z","dependency_job_id":"dbcfd891-4855-4656-8ff9-5b981989fee0","html_url":"https://github.com/openlayers/codemod","commit_stats":null,"previous_names":["openlayers/codemod"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/openlayers/codemod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcodemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcodemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcodemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcodemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openlayers","download_url":"https://codeload.github.com/openlayers/codemod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcodemod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2025-06-26T01:04:44.912Z","updated_at":"2026-03-06T21:33:10.348Z","avatar_url":"https://github.com/openlayers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @openlayers/codemod\n\nAutomated code modifications to assist with OpenLayers upgrades.\n\n## replace-barrel-imports\n\nRewrite imports from [\"barrel files\"](https://www.google.com/search?q=barrel+files).\n\n```bash\n# rewrite imports in all .js and .mjs files in the path/to/files directory\nnpx @openlayers/codemod@latest replace-barrel-imports path/to/files\n```\n\nSee additional options with the `help` command (or `--help` flag).\n\n```bash\n# see options for the command\nnpx @openlayers/codemod@latest help replace-barrel-imports\n```\n\n## Development\n\nRun tests with `npm test`. Debug the tests with `npx vitest --inspect-brk --no-file-parallelism` (then visit `chrome://inspect/#devices`).\n\nTo run the codemod directly from this repo, so something like `node ./codemod.js replace-barrel-imports --consider-relative-paths ../path/to/other/files`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlayers%2Fcodemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenlayers%2Fcodemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlayers%2Fcodemod/lists"}