{"id":25678012,"url":"https://github.com/gnodi/ecma-version","last_synced_at":"2026-05-14T18:31:24.048Z","repository":{"id":57113667,"uuid":"80935678","full_name":"gnodi/ecma-version","owner":"gnodi","description":"Need a package to get the ECMAScript version of a browser? You found it!","archived":false,"fork":false,"pushed_at":"2020-04-24T23:04:58.000Z","size":22,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-24T05:17:11.479Z","etag":null,"topics":["browser","ecma-version","ecmascript","es5","es6","gnodi","javascript","lib","nodejs","user-agent","version"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/gnodi.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":"2017-02-04T17:32:05.000Z","updated_at":"2020-07-30T12:39:36.000Z","dependencies_parsed_at":"2022-08-22T05:10:40.112Z","dependency_job_id":null,"html_url":"https://github.com/gnodi/ecma-version","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gnodi/ecma-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodi%2Fecma-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodi%2Fecma-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodi%2Fecma-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodi%2Fecma-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnodi","download_url":"https://codeload.github.com/gnodi/ecma-version/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnodi%2Fecma-version/sbom","scorecard":{"id":431197,"data":{"date":"2025-08-11","repo":{"name":"github.com/gnodi/ecma-version","commit":"f3923787d6ff6c87ba027ffa895ce90373aabb8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T03:23:59.484Z","repository_id":57113667,"created_at":"2025-08-19T03:23:59.484Z","updated_at":"2025-08-19T03:23:59.484Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33037785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["browser","ecma-version","ecmascript","es5","es6","gnodi","javascript","lib","nodejs","user-agent","version"],"created_at":"2025-02-24T15:35:15.052Z","updated_at":"2026-05-14T18:31:24.027Z","avatar_url":"https://github.com/gnodi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @gnodi/ecma-version\n\n[Node.js] Need a package to get the ECMAScript version of a browser? You found it!\n\n[![Build][build-image]][build-url]\n[![Coverage Status][coverage-image]][coverage-url]\n[![Version][version-image]][version-url]\n[![Downloads][downloads-image]][downloads-url]\n[![Dependencies][dependencies-image]][dependencies-url]\n[![Dev Dependencies][dev-dependencies-image]][dev-dependencies-url]\n\n## Installation\n\nRun the following command to add the package to your dev dependencies:\n```sh\n$ npm install --save @gnodi/ecma-version\n```\n\n## Use\n```js\nconst ecmaVersion = require('@gnodi/ecma-version');\n```\n\n### Get the ECMAScript version from a browser name and version\n```js\necmaVersion.getFromBrowser('Firefox', 10); // Return 5\necmaVersion.getFromBrowser('Firefox', 55); // Return 6\n```\n\n### Get the ECMAScript version from a user agent\n```js\necmaVersion.getFromUserAgent(\n  'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36'\n);\n```\n\n### Get the ECMAScript version from a HTTP request object\n```js\nconst http = require('http');\n\nhttp.createServer((req) =\u003e {\n  const version = ecmaVersion.getFromRequest(req);\n\n  console.log(version);\n}).listen(3080);\n```\n\n### Get the browser compatible version for an ECMAScript version\n```js\necmaVersion.getBrowserCompatibleVersion('Firefox', 5); // Return 0\necmaVersion.getBrowserCompatibleVersion('Firefox', 6); // Return 53\necmaVersion.getBrowserCompatibleVersion('IE', 6); // Return null\n```\n\n### LICENSE\n\n[MIT](LICENSE)\n\n[build-image]: https://img.shields.io/travis/gnodi/ecma-version.svg?style=flat\n[build-url]: https://travis-ci.org/gnodi/ecma-version\n[coverage-image]:https://coveralls.io/repos/github/gnodi/ecma-version/badge.svg?branch=master\n[coverage-url]:https://coveralls.io/github/gnodi/ecma-version?branch=master\n[version-image]: https://img.shields.io/npm/v/@gnodi/ecma-version.svg?style=flat\n[version-url]: https://npmjs.org/package/@gnodi/ecma-version\n[downloads-image]: https://img.shields.io/npm/dm/@gnodi/ecma-version.svg?style=flat\n[downloads-url]: https://npmjs.org/package/@gnodi/ecma-version\n[dependencies-image]:https://david-dm.org/gnodi/ecma-version.svg\n[dependencies-url]:https://david-dm.org/gnodi/ecma-version\n[dev-dependencies-image]:https://david-dm.org/gnodi/ecma-version/dev-status.svg\n[dev-dependencies-url]:https://david-dm.org/gnodi/ecma-version#info=devDependencies\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnodi%2Fecma-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnodi%2Fecma-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnodi%2Fecma-version/lists"}