{"id":48165264,"url":"https://github.com/fscherwi/get-user-agent","last_synced_at":"2026-04-04T17:29:06.622Z","repository":{"id":1308664,"uuid":"41960500","full_name":"fscherwi/get-user-agent","owner":"fscherwi","description":"easily generate a browser useragent","archived":false,"fork":false,"pushed_at":"2023-08-01T08:41:12.000Z","size":2566,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-11T07:39:20.421Z","etag":null,"topics":["browser","chrome","firefox","opera","safari","user-agent"],"latest_commit_sha":null,"homepage":"","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/fscherwi.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":"2015-09-05T12:46:43.000Z","updated_at":"2025-06-25T15:58:26.000Z","dependencies_parsed_at":"2024-06-20T23:22:55.141Z","dependency_job_id":"05bc6645-2e0e-4ac1-b0f7-5ac82c47ce84","html_url":"https://github.com/fscherwi/get-user-agent","commit_stats":{"total_commits":308,"total_committers":7,"mean_commits":44.0,"dds":0.7402597402597403,"last_synced_commit":"ff713c23dd9a11a3b9dd7ead89ca9ff8947c6c62"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/fscherwi/get-user-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscherwi%2Fget-user-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscherwi%2Fget-user-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscherwi%2Fget-user-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscherwi%2Fget-user-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fscherwi","download_url":"https://codeload.github.com/fscherwi/get-user-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fscherwi%2Fget-user-agent/sbom","scorecard":{"id":412612,"data":{"date":"2025-08-11","repo":{"name":"github.com/fscherwi/get-user-agent","commit":"6fa1f428418955bc887b83dc1b457b26d8d820c4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci.yml:25","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1"],"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/fscherwi/get-user-agent/codeql-analysis.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T23:06:08.794Z","repository_id":1308664,"created_at":"2025-08-18T23:06:08.794Z","updated_at":"2025-08-18T23:06:08.794Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31407644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["browser","chrome","firefox","opera","safari","user-agent"],"created_at":"2026-04-04T17:29:06.006Z","updated_at":"2026-04-04T17:29:06.605Z","avatar_url":"https://github.com/fscherwi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-user-agent\n\n![Build Status](https://github.com/fscherwi/get-user-agent/actions/workflows/ci.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/fscherwi/get-user-agent/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/fscherwi/get-user-agent?branch=master)\n\nEasily generate a browser user agent!\n\n## Install\n\n```bash\nnpm install get-user-agent\n```\n\n## Example Usage\n\n```javascript\nconst useragent = require('get-user-agent');\n\nconsole.log(useragent.firefox(75));\n```\n\n## Functions\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#chrome\"\u003echrome(version, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eChrome user agent\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#chromeAdvanced\"\u003echromeAdvanced(version, webkitVersion, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eChrome user agent with advanced options\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#firefox\"\u003efirefox(version, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eSafari user agent\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#firefoxAdvanced\"\u003efirefoxAdvanced(version, geckoVersion, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eFirefox user agent with advanced options\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#opera\"\u003eopera(version, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eOpera user agent\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#operaAdvanced\"\u003eoperaAdvanced(version, prestoVersion, operaVersion, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eOpera user agent with advanced options\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#safari\"\u003esafari(version, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eSafari user agent\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#safariAdvanced\"\u003esafariAdvanced(version, webkitBuildVersion, safariBuildVersion, [sysInfo])\u003c/a\u003e ⇒ \u003ccode\u003estring\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eSafari user agent with advanced options\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003ca name=\"chrome\"\u003e\u003c/a\u003e\n\n## chrome(version, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nChrome user agent\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"chromeAdvanced\"\u003e\u003c/a\u003e\n\n## chromeAdvanced(version, webkitVersion, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nChrome user agent with advanced options\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| webkitVersion | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Webkit version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"firefox\"\u003e\u003c/a\u003e\n\n## firefox(version, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nSafari user agent\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"firefoxAdvanced\"\u003e\u003c/a\u003e\n\n## firefoxAdvanced(version, geckoVersion, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nFirefox user agent with advanced options\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| geckoVersion | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Gecko version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"opera\"\u003e\u003c/a\u003e\n\n## opera(version, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nOpera user agent\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"operaAdvanced\"\u003e\u003c/a\u003e\n\n## operaAdvanced(version, prestoVersion, operaVersion, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nOpera user agent with advanced options\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| prestoVersion | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Presto version |\n| operaVersion | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Opera version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"safari\"\u003e\u003c/a\u003e\n\n## safari(version, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nSafari user agent\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n\n\u003ca name=\"safariAdvanced\"\u003e\u003c/a\u003e\n\n## safariAdvanced(version, webkitBuildVersion, safariBuildVersion, [sysInfo]) ⇒ \u003ccode\u003estring\u003c/code\u003e\nSafari user agent with advanced options\n\n**Returns**: \u003ccode\u003estring\u003c/code\u003e - User agent\n\n| Param | Type | Description |\n| --- | --- | --- |\n| version | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Browser version |\n| webkitBuildVersion | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Webkit build version |\n| safariBuildVersion | \u003ccode\u003enumber\u003c/code\u003e \\| \u003ccode\u003estring\u003c/code\u003e | Safari build version |\n| sysInfo (optional) | \u003ccode\u003estring\u003c/code\u003e | System information |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffscherwi%2Fget-user-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffscherwi%2Fget-user-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffscherwi%2Fget-user-agent/lists"}