{"id":13712478,"url":"https://github.com/SmartBear/browser-info","last_synced_at":"2025-05-06T22:31:13.999Z","repository":{"id":52843724,"uuid":"294083258","full_name":"SmartBear/browser-info","owner":"SmartBear","description":"Tiny developer-friendly JS library that provides information about host browser","archived":false,"fork":false,"pushed_at":"2024-10-07T12:48:27.000Z","size":195,"stargazers_count":1,"open_issues_count":5,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-26T18:04:32.358Z","etag":null,"topics":["bitbar","browser-info","on-prem","saas","user-agent","user-agent-parser"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartBear.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":"2020-09-09T10:46:48.000Z","updated_at":"2024-10-07T12:48:32.000Z","dependencies_parsed_at":"2024-06-21T14:11:23.793Z","dependency_job_id":"441f482c-2a57-4e37-8e10-f5803d4f395f","html_url":"https://github.com/SmartBear/browser-info","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":"0.033333333333333326","last_synced_commit":"0aac04bc3db734e1ee45efed41f1dcc95172f5d7"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fbrowser-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fbrowser-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fbrowser-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fbrowser-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartBear","download_url":"https://codeload.github.com/SmartBear/browser-info/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252779003,"owners_count":21802863,"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":["bitbar","browser-info","on-prem","saas","user-agent","user-agent-parser"],"created_at":"2024-08-02T23:01:18.943Z","updated_at":"2025-05-06T22:31:13.675Z","avatar_url":"https://github.com/SmartBear.png","language":"JavaScript","funding_links":[],"categories":["By Technology"],"sub_categories":["JavaScript"],"readme":"# Browser Info\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/SmartBear/browser-info/Test?label=lint%20%2B%20test)\n[![Current Release](https://img.shields.io/github/release/SmartBear/browser-info.svg)](releases)\n[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](LICENSE.md)\n\nTiny (~2KB) vanilla JS developers-friendly library that provides information about host browser and OS.\nA goal of this library **isn't** creation of the all-knowing and heavy database. Rather focus is to keep is small and light.\nEg if you want to focus on major browsers and platforms.\n\nDemo: https://smartbear.github.io/browser-info/\n\n## Supported Browsers and OS\n\n### Browsers\n\n- ✔️ Chrome\n- ✔️ Firefox\n- ✔️ Edge\n- ✔️ Opera\n- ✔️ SamsungInternet\n- ✔️ UCBrowser\n- ✔️ Safari\n- ✔️ InternetExplorer\n\n### OS\n\n- ✔️ Windows\n- ✔️ Windows Phone\n- ✔️ MacOS\n- ✔️ iOS\n- ✔️ iPadOS\n- ✔️ ChromeOS\n- ✔️ Android\n- ✔️ BlackBerry\n- ✔️ webOS\n- ✔️ Linux\n\n## Usage\n\n```js\nimport BrowserInfo from '@smartbear/browser-info'\n\nBrowserInfo.detect(); // if param not given, then it will use navigator.userAgent\n\nconsole.log(BrowserInfo.name); // print detected browser's name\nconsole.log(BrowserInfo.release); // print detected browser's major release number\nconsole.log(BrowserInfo.version); // print detected browser's version string\nconsole.log(BrowserInfo.os); // print detected OS name\n```\n\n### Auto Detect and Embed\n\nIn `dist` directory there is a file with `.embed` sufix. Importing this library into your UI will cause calling\n`detect()` method and assigning `BrowserInfo` to `window.navigator.browserInfo` - this way it is accessible globally.\n\n```js\nimport '@smartbear/browser-info/dist/smartbear-browser-info.embed.min'\n\nconsole.log(window.navigator.browserInfo);\n```\n\n## License\n\nThis project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSmartBear%2Fbrowser-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSmartBear%2Fbrowser-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSmartBear%2Fbrowser-info/lists"}