{"id":16125731,"url":"https://github.com/dy/autoesm","last_synced_at":"2025-07-29T03:05:54.407Z","repository":{"id":57187467,"uuid":"260074301","full_name":"dy/autoesm","owner":"dy","description":"Import esm in node@13+ based on source, not package.json","archived":false,"fork":false,"pushed_at":"2020-05-21T02:19:33.000Z","size":12,"stargazers_count":23,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T12:21:39.366Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.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}},"created_at":"2020-04-30T00:13:04.000Z","updated_at":"2024-11-06T22:59:33.000Z","dependencies_parsed_at":"2022-08-28T10:51:30.771Z","dependency_job_id":null,"html_url":"https://github.com/dy/autoesm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dy/autoesm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fautoesm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fautoesm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fautoesm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fautoesm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/autoesm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fautoesm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267621581,"owners_count":24116900,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-10-09T21:31:15.127Z","updated_at":"2025-07-29T03:05:54.380Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoesm\n\nNode@13+ supports ES modules natively, but doesn't let importing arbitrary modules − it requires either `\"type\": \"module\"` in `package.json` or `.mjs` file extension to indicate that the file is ESM.\n\n_autoesm_ resolves that by detecting ESM based on source, (not extension), allowing to import any ESM files (like existing ESM ecosystem with `\"module\"` field in `package.json` for unpkg/pikacdn).\n\nSlow? Maybe. Runtime flag is a bummer too. In long term all ESM packages will get `\"type\": \"module\"` flag, but for now it saves nerves and time for running tests.\n\nAlso - the [esm](https://ghub.io/esm) is broken for node@13+, so this is the replacement.\n\n## Usage\n\n[![npm i autoesm](https://nodei.co/npm/autoesm.png?mini=true)](https://npmjs.org/package/autoesm/)\n\nProviding node@13+ is used:\n\n```sh\nnode --experimental-loader autoesm ./test.js\n```\n\n\u003cp align=\"center\"\u003eॐ\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fautoesm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fautoesm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fautoesm/lists"}