{"id":26269894,"url":"https://github.com/axetroy/ecma-detector","last_synced_at":"2026-02-26T04:10:40.296Z","repository":{"id":268901279,"uuid":"841228553","full_name":"axetroy/ecma-detector","owner":"axetroy","description":"A tool for detecting the ECMAScript version of javascript code","archived":false,"fork":false,"pushed_at":"2025-04-23T05:58:56.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T06:01:48.197Z","etag":null,"topics":["detector","ecmascript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ecma-detector","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"axetroy","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://github.com/axetroy/buy-me-a-cup-of-tea"}},"created_at":"2024-08-12T01:20:17.000Z","updated_at":"2025-04-23T05:58:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"92fefd88-3ca5-4362-9f45-a73a23206e97","html_url":"https://github.com/axetroy/ecma-detector","commit_stats":null,"previous_names":["axetroy/ecma-detector"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fecma-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fecma-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fecma-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fecma-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/ecma-detector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251789604,"owners_count":21644084,"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":["detector","ecmascript"],"created_at":"2025-03-14T05:16:44.212Z","updated_at":"2026-02-26T04:10:35.275Z","avatar_url":"https://github.com/axetroy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/axetroy","https://github.com/axetroy/buy-me-a-cup-of-tea"],"categories":[],"sub_categories":[],"readme":"# ecma-detector\n\n[![Badge](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg?style=flat-square)](https://996.icu/#/en_US)\n[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg?style=flat-square)](https://github.com/996icu/996.ICU/blob/master/LICENSE)\n![Node](https://img.shields.io/badge/node-%3E=14-blue.svg?style=flat-square)\n[![npm version](https://badge.fury.io/js/ecma-detector.svg)](https://badge.fury.io/js/ecma-detector)\n\nA tool to detect ECMAScript version.\n\n## Installation\n\n```bash\nnpm install ecma-detector --save\n```\n\n## Usage\n\n```js\n// import via esm\nimport { isECMAScript } from \"ecma-detector\";\n\n// import via cjs\nconst { isECMAScript } = require(\"ecma-detector\");\n```\n\n```js\nimport { isECMAScript, isECMAScript2020 } from \"ecma-detector\";\n\nisECMAScript(\"let foo = bar\", \"2015\"); // true\nisECMAScript2020(\"let foo = a ?? b\"); // true\n```\n\n## License\n\nThe [Anti 996 License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Fecma-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Fecma-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Fecma-detector/lists"}