{"id":19065935,"url":"https://github.com/esm-dev/esm-compat","last_synced_at":"2025-04-28T12:24:44.924Z","repository":{"id":246545127,"uuid":"821366501","full_name":"esm-dev/esm-compat","owner":"esm-dev","description":"Checks the ES6 compatibility from an `User-Agent` string.","archived":false,"fork":false,"pushed_at":"2024-10-03T04:30:48.000Z","size":30,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T13:21:56.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/esm-dev.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}},"created_at":"2024-06-28T11:32:43.000Z","updated_at":"2025-03-11T16:43:07.000Z","dependencies_parsed_at":"2024-06-28T16:14:14.585Z","dependency_job_id":"fe788899-22b4-4ba2-9ae2-fe03d37a1786","html_url":"https://github.com/esm-dev/esm-compat","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"7c3f96dce429fe5852598a8f874972f5473cfe57"},"previous_names":["esm-dev/esm-compat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fesm-compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fesm-compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fesm-compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fesm-compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esm-dev","download_url":"https://codeload.github.com/esm-dev/esm-compat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251059772,"owners_count":21529928,"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":[],"created_at":"2024-11-09T00:53:43.474Z","updated_at":"2025-04-28T12:24:44.907Z","avatar_url":"https://github.com/esm-dev.png","language":"TypeScript","readme":"# esm-compat\n\nCheck the ES module compatibility of a browser.\n\n## Installation\n\n```\nnpm i esm-compat\n```\n\n## Usage\n\n```js\nimport { getEsmaVersionFromUA } from \"esm-compat\"\n\nconst ua = \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36\"\nconst version = getEsmaVersionFromUA(ua)\nconsole.log(version) // =\u003e es2023\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesm-dev%2Fesm-compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesm-dev%2Fesm-compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesm-dev%2Fesm-compat/lists"}