{"id":17875315,"url":"https://github.com/noyobo/esm-cjs","last_synced_at":"2026-02-23T22:07:39.732Z","repository":{"id":38418857,"uuid":"331552862","full_name":"noyobo/esm-cjs","owner":"noyobo","description":"Transform ESM to Common JS for present NodeJS, without any junk wrappers or useless renaming.","archived":false,"fork":false,"pushed_at":"2022-06-04T11:00:34.000Z","size":221,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T03:43:51.543Z","etag":null,"topics":["cjs","esm","esm2cjs"],"latest_commit_sha":null,"homepage":"","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/noyobo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-21T07:44:48.000Z","updated_at":"2023-03-08T05:04:08.000Z","dependencies_parsed_at":"2022-08-31T11:41:40.937Z","dependency_job_id":null,"html_url":"https://github.com/noyobo/esm-cjs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/noyobo/esm-cjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyobo%2Fesm-cjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyobo%2Fesm-cjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyobo%2Fesm-cjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyobo%2Fesm-cjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noyobo","download_url":"https://codeload.github.com/noyobo/esm-cjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noyobo%2Fesm-cjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268256821,"owners_count":24221051,"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-01T02:00:08.611Z","response_time":67,"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":["cjs","esm","esm2cjs"],"created_at":"2024-10-28T11:14:27.786Z","updated_at":"2026-02-23T22:07:34.697Z","avatar_url":"https://github.com/noyobo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esm-cjs\n\n[![](https://github.com/noyobo/esm-cjs/workflows/Testing/badge.svg)](https://github.com/noyobo/esm-cjs/actions?query=workflow%3ATesting) [![Codecov](https://img.shields.io/codecov/c/github/noyobo/esm-cjs/main.svg)](https://codecov.io/gh/noyobo/esm-cjs/branch/main) [![npm package](https://img.shields.io/npm/v/esm-cjs.svg)](https://www.npmjs.org/package/esm-cjs) [![NPM downloads](http://img.shields.io/npm/dm/esm-cjs.svg)](https://npmjs.org/package/esm-cjs)\n\nTransform ESM to Common JS for present NodeJS, without any junk wrappers or useless renaming.\n\n## Usage\n\n```js\nconst esm2cjs = require('esm-cjs');\n\nconst input = `import { bar } from 'foo';`;\n\nconst output = esm2cjs(input);\n\n// const { bar }  = require('foo');\n```\n\n## Command line\n\n```bash\nej --help\nej ./**/*.js --write\n```\n\n## TODO\n\n- [ ] Aggregating modules\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoyobo%2Fesm-cjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoyobo%2Fesm-cjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoyobo%2Fesm-cjs/lists"}