{"id":15498673,"url":"https://github.com/jankapunkt/js-detect-os","last_synced_at":"2025-04-22T22:19:04.188Z","repository":{"id":36371607,"uuid":"223580660","full_name":"jankapunkt/js-detect-os","owner":"jankapunkt","description":"Detect current running OS including version and codename.","archived":false,"fork":false,"pushed_at":"2023-01-07T04:25:44.000Z","size":806,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T22:18:58.016Z","etag":null,"topics":["browser","detection","hacktoberfest","javascript","navigator","node-module","operating-system"],"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/jankapunkt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/kuesterjan"]}},"created_at":"2019-11-23T11:52:36.000Z","updated_at":"2023-01-06T16:08:23.000Z","dependencies_parsed_at":"2023-01-17T00:53:13.641Z","dependency_job_id":null,"html_url":"https://github.com/jankapunkt/js-detect-os","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankapunkt%2Fjs-detect-os","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankapunkt%2Fjs-detect-os/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankapunkt%2Fjs-detect-os/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankapunkt%2Fjs-detect-os/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jankapunkt","download_url":"https://codeload.github.com/jankapunkt/js-detect-os/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250331816,"owners_count":21413104,"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":["browser","detection","hacktoberfest","javascript","navigator","node-module","operating-system"],"created_at":"2024-10-02T08:47:14.943Z","updated_at":"2025-04-22T22:19:04.163Z","avatar_url":"https://github.com/jankapunkt.png","language":"JavaScript","funding_links":["https://paypal.me/kuesterjan"],"categories":[],"sub_categories":[],"readme":"# Detect OS in Javascript\n\n[![CI](https://github.com/jankapunkt/js-detect-os/actions/workflows/tests.yml/badge.svg)](https://github.com/jankapunkt/js-detect-os/actions/workflows/tests.yml)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n![GitHub](https://img.shields.io/github/license/jankapunkt/js-detect-os)\n\n\nDetect current running OS including version and arch, if possible. \nNo dependencies. All code \u003c 300 lines.\n\nThis is just a minimal, simple and incomplete package to detect the following:\n\n* os - Android, Windows, OSX, Linux etc. or undefined for unknown\n* isMobile - true if a mobile OS, otherwise false\n* name - For example \"Ubuntu\" when OS is \"Linux\" or undefined\n* arch - 32, 64 or undefined\n* ram - if `navigator.deviceMemory` is available or undefined\n\nUses mainly `navigator.platform` and `navigator.userAgent` as second guess for detection.\n\nNo legacy support yet, no support for OS-minorites yet. **Feel free to contribute!**\n\n## Why not use feature detection instead?\n\nYes we all know this is the better option. However, this package intends to\ndetect the OS and not the browser, so feature detection won't help that much.\n\nThere are more distinct ways of detecting the OS based on certain ways of \nfeature **implementation** and results but that won't be covered by this package\n(yet). \n\n## License\n\nMIT, see [license](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjankapunkt%2Fjs-detect-os","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjankapunkt%2Fjs-detect-os","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjankapunkt%2Fjs-detect-os/lists"}