{"id":16925098,"url":"https://github.com/hiroppy/node-esm-example","last_synced_at":"2026-05-17T22:33:46.614Z","repository":{"id":66361441,"uuid":"181335281","full_name":"hiroppy/node-esm-example","owner":"hiroppy","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-17T02:41:06.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T01:28:20.231Z","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/hiroppy.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":"2019-04-14T16:12:27.000Z","updated_at":"2021-05-04T03:50:12.000Z","dependencies_parsed_at":"2023-02-22T04:00:15.971Z","dependency_job_id":null,"html_url":"https://github.com/hiroppy/node-esm-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiroppy/node-esm-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnode-esm-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnode-esm-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnode-esm-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnode-esm-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiroppy","download_url":"https://codeload.github.com/hiroppy/node-esm-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fnode-esm-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33157563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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":"2024-10-13T20:08:48.730Z","updated_at":"2026-05-17T22:33:46.599Z","avatar_url":"https://github.com/hiroppy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Confirm package.json \"type\" field\n\nEach file's module type depends on the closest parent's package.json.\n\n```sh\n.\n├── esm\n│   ├── cjs\n│   │   ├── cjs\n│   │   │   └── cjs.js   # ↓\n│   │   ├── cjs.js       # ↓\n│   │   └── package.json # type: commonjs\n│   └── esm.js           # ↓\n├── package.json         # type: module\n└── type.js              # ↑\n```\n\n```javascript\nconsole.log(`name: type.js module-type: ${typeof module !== 'undefined' ? 'cjs' : 'esm'}`);\n```\n\n```console\n$ node --experimental-modules type.js\nname: esm/esm.js          module-type: esm\nname: esm/cjs/cjs.js      module-type: cjs\nname: esm/cjs/cjs/cjs.js  module-type: cjs\nname: type.js             module-type: esm\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fnode-esm-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiroppy%2Fnode-esm-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fnode-esm-example/lists"}