{"id":22160352,"url":"https://github.com/rozek/svelte-system-info","last_synced_at":"2025-07-26T09:31:27.579Z","repository":{"id":44611190,"uuid":"373998748","full_name":"rozek/svelte-system-info","owner":"rozek","description":"determines name and version of underlying browser and operating system (not only for Svelte)","archived":false,"fork":false,"pushed_at":"2024-12-12T11:53:44.000Z","size":62,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T02:54:49.319Z","etag":null,"topics":["browser-detection","os-detection"],"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/rozek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-06-05T01:55:51.000Z","updated_at":"2024-12-12T11:53:48.000Z","dependencies_parsed_at":"2024-05-20T06:28:25.266Z","dependency_job_id":"c8eb302a-0ffa-46a3-8f13-41e896ace7e8","html_url":"https://github.com/rozek/svelte-system-info","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rozek/svelte-system-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fsvelte-system-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fsvelte-system-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fsvelte-system-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fsvelte-system-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/svelte-system-info/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fsvelte-system-info/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267145508,"owners_count":24042650,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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-detection","os-detection"],"created_at":"2024-12-02T04:07:31.974Z","updated_at":"2025-07-26T09:31:27.566Z","avatar_url":"https://github.com/rozek.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-system-info #\n\n determines name and version of underlying browser and operating system (not only for Svelte)\n\n**NPM users**: please consider the [Github README](https://github.com/rozek/svelte-system-info/blob/main/README.md) for the latest description of this package (as updating the docs would otherwise always require a new NPM package version)\n\n\u003e Just a small note: if you like this module and plan to use it, consider \"starring\" this repository (you will find the \"Star\" button on the top right of this page), so that I know which of my repositories to take most care of.\n\n## Installation ##\n\n`svelte-system-info` may be used as an ECMAScript module (ESM), a CommonJS or AMD module or from a global variable.\n\nYou may either install the package into your build environment using [NPM](https://docs.npmjs.com/) with the command\n\n```\nnpm install svelte-system-info\n```\n\nor load the plain script file directly\n\n```html\n\u003cscript src=\"https://unpkg.com/svelte-system-info\"\u003e\u003c/script\u003e\n```\n\n## Access ##\n\nHow to access the package depends on the type of module you prefer\n\n* ESM (or Svelte): `import System from 'svelte-system-info'`\n* CommonJS: `const System = require('svelte-system-info')`\n* AMD: `require(['svelte-system-info'], (System) =\u003e {...})`\n\nAlternatively, you may access the global variable `System` directly.\n\n## Usage within Svelte ##\n\nFor Svelte, it is recommended to import the package in a module context:\n\n```html\n\u003cscript context=\"module\"\u003e\n  import System from 'svelte-system-info'\n\u003c/script\u003e\n\n\u003cscript\u003e\n  console.log('BrowserName',    System.BrowserName)\n  console.log('BrowserVersion', System.BrowserVersion)\n  console.log('OSName',         System.OSName)\n  console.log('OSVersion',      System.OSVersion)\n\u003c/script\u003e\n```\n\n## Usage as ECMAscript, CommonJS or AMD Module (or as a global Variable) ##\n\nLet's assume that you already \"required\" or \"imported\" (or simply loaded) the module according to your local environment. In that case, you may use it as follows:\n\n```javascript\nconsole.log('BrowserName',    System.BrowserName)\nconsole.log('BrowserVersion', System.BrowserVersion)\nconsole.log('OSName',         System.OSName)\nconsole.log('OSVersion',      System.OSVersion)\n```\n\n## Example ##\n\nAn example is available on the Svelte REPL - feel free to play with it!\n\n* [svelte-system-info](https://svelte.dev/repl/31898be7c9cc4512b3613290de2e6d39)\n\n## Build Instructions ##\n\nYou may easily build this package yourself.\n\nJust install [NPM](https://docs.npmjs.com/) according to the instructions for your platform and follow these steps:\n\n1. either clone this repository using [git](https://git-scm.com/) or [download a ZIP archive](https://github.com/rozek/svelte-system-info/archive/refs/heads/main.zip) with its contents to your disk and unpack it there \n2. open a shell and navigate to the root directory of this repository\n3. run `npm install` in order to install the complete build environment\n4. execute `npm run build` to create a new build\n\nYou may also look into the author's [build-configuration-study](https://github.com/rozek/build-configuration-study) for a general description of his build environment.\n\n## License ##\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fsvelte-system-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Fsvelte-system-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fsvelte-system-info/lists"}