{"id":19889542,"url":"https://github.com/tsmx/node-commonjs-to-esm","last_synced_at":"2025-09-11T12:35:31.755Z","repository":{"id":168396190,"uuid":"644065964","full_name":"tsmx/node-commonjs-to-esm","owner":"tsmx","description":"Example showing how to migrate an existing NodeJS project from CommonJS to ESM","archived":false,"fork":false,"pushed_at":"2025-07-23T19:38:24.000Z","size":315,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T21:59:52.933Z","etag":null,"topics":["commonjs","ecmascript","esm","esmodules","nodejs"],"latest_commit_sha":null,"homepage":"https://tsmx.net/convert-existing-nodejs-project-from-commonjs-to-esm/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsmx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-05-22T18:35:47.000Z","updated_at":"2025-07-23T19:36:51.000Z","dependencies_parsed_at":"2023-07-11T17:31:26.645Z","dependency_job_id":"f1623157-0a3b-49df-a5bb-a20e8ef6966d","html_url":"https://github.com/tsmx/node-commonjs-to-esm","commit_stats":null,"previous_names":["tsmx/node-commonjs-to-esm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsmx/node-commonjs-to-esm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fnode-commonjs-to-esm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fnode-commonjs-to-esm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fnode-commonjs-to-esm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fnode-commonjs-to-esm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsmx","download_url":"https://codeload.github.com/tsmx/node-commonjs-to-esm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2Fnode-commonjs-to-esm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269672472,"owners_count":24457115,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["commonjs","ecmascript","esm","esmodules","nodejs"],"created_at":"2024-11-12T18:10:40.861Z","updated_at":"2025-08-10T03:37:41.322Z","avatar_url":"https://github.com/tsmx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-commonjs-to-esm\n\n\u003e Example showing how to migrate an existing NodeJS project from CommonJS to ESM\n\n\nThis is the accompanying example project for the  [CommonJS-to-ESM migration guide](https://tsmx.net/convert-existing-nodejs-project-from-commonjs-to-esm/).\n\nTo follow along with the guide, clone this repo an inspect the branches for CommonJS and ESM.\n\n```bash\n# clone the example project\ngit clone https://github.com/tsmx/node-commonjs-to-esm.git\n\n# install needed dependencies\ncd node-commonjs-to-esm\nnpm install\n\n# check out/switch to the original CommonJS project\ngit checkout commonjs\n\n# check out/switch to the migrated ESM project\ngit checkout esm\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmx%2Fnode-commonjs-to-esm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsmx%2Fnode-commonjs-to-esm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmx%2Fnode-commonjs-to-esm/lists"}