{"id":17996805,"url":"https://github.com/max-programming/use-os","last_synced_at":"2026-01-19T03:01:54.855Z","repository":{"id":115893503,"uuid":"378408831","full_name":"max-programming/use-os","owner":"max-programming","description":"Parses browser user-agent strings for React","archived":false,"fork":false,"pushed_at":"2021-05-28T17:04:41.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T06:14:26.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/use-os","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max-programming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-19T12:37:41.000Z","updated_at":"2021-06-19T12:37:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcac04e6-b052-4811-b0f6-65dd2031ac39","html_url":"https://github.com/max-programming/use-os","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/max-programming/use-os","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-programming%2Fuse-os","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-programming%2Fuse-os/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-programming%2Fuse-os/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-programming%2Fuse-os/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-programming","download_url":"https://codeload.github.com/max-programming/use-os/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-programming%2Fuse-os/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28559350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"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":[],"created_at":"2024-10-29T21:15:55.649Z","updated_at":"2026-01-19T03:01:54.840Z","avatar_url":"https://github.com/max-programming.png","language":null,"readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"100px\" src=\"https://raw.githubusercontent.com/hebertcisco/use-os/master/.github/images/favicon512x512-linux.png\" align=\"center\" alt=\":package: use-os\" /\u003e\n \u003ch2 align=\"center\"\u003e:package: use-os\u003c/h2\u003e\n \u003cp align=\"center\"\u003eParses browser user-agent strings for React\u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eDid you like the project? Please, considerate \u003ca href=\"https://github.com/hebertcisco/hebertcisco/blob/main/.github/patreon.md\"\u003ebeing a supporter\u003c/a\u003e and receive exclusive gifts!\n \u003c/p\u003e\n\n## Installation\n\n\u003e Clone this repository: `git clone https://github.com/hebertcisco/use-os`\n\n### Open the directory and install the dependencies\n\n```bash\ncd use-os\nnpm install\n```\n\n## Using\n\n```js\nimport useOs from \"use-os\";\n```\n\nIn react component:\n\n```js\nexport default function HomePage() {\n  const os = useOs();\n\n  return (\n    \u003cdiv\u003e\n      {os === \"windows\" ? (\n        \u003c\u003e\n          \u003cb\u003eWindows\u003c/b\u003e (.exe)\n        \u003c/\u003e\n      ) : (\n        \u003c\u003e\u003c/\u003e\n      )}\n    \u003c/div\u003e\n  );\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-programming%2Fuse-os","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax-programming%2Fuse-os","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-programming%2Fuse-os/lists"}