{"id":15504320,"url":"https://github.com/kentcdodds/babel-codemod-example","last_synced_at":"2025-04-23T00:08:57.675Z","repository":{"id":66052660,"uuid":"82832972","full_name":"kentcdodds/babel-codemod-example","owner":"kentcdodds","description":"An example of how to use babel as a codemod","archived":false,"fork":false,"pushed_at":"2021-01-25T23:22:58.000Z","size":14,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-23T00:08:52.947Z","etag":null,"topics":["ast","babel","codemod","esmodules","example","javascript","kcd-edu"],"latest_commit_sha":null,"homepage":"http://kcd.im/babel-codemod-video","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/kentcdodds.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":"2017-02-22T17:26:46.000Z","updated_at":"2023-10-12T05:43:36.000Z","dependencies_parsed_at":"2023-06-19T02:57:20.145Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/babel-codemod-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-codemod-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-codemod-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-codemod-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fbabel-codemod-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/babel-codemod-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343946,"owners_count":21415040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","babel","codemod","esmodules","example","javascript","kcd-edu"],"created_at":"2024-10-02T09:17:11.747Z","updated_at":"2025-04-23T00:08:57.643Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","readme":"# babel-codemod-example\n\nWhen ES modules land in Node, it will be impossible to do this:\n\n```javascript\nimport {thing} from './common-js-module'\n```\n\nBecause CommonJS is not statically analyzable. However many people (myself included) have been doing this for a long time:\n\n```javascript\nimport {readFile} from 'fs'\n```\n\nIn [this quick video](http://kcd.im/babel-codemod-video), I show you a quick babel plugin I wrote to do a codemod on my code to fix this automatically.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fbabel-codemod-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fbabel-codemod-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fbabel-codemod-example/lists"}