{"id":21118475,"url":"https://github.com/dangeredwolf/platforminfo","last_synced_at":"2026-04-24T18:06:41.391Z","repository":{"id":54670502,"uuid":"333599495","full_name":"dangeredwolf/PlatformInfo","owner":"dangeredwolf","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-17T01:50:05.000Z","size":114,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T06:44:06.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dangeredwolf.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}},"created_at":"2021-01-28T00:32:19.000Z","updated_at":"2022-03-02T17:51:14.000Z","dependencies_parsed_at":"2022-08-13T23:30:30.600Z","dependency_job_id":null,"html_url":"https://github.com/dangeredwolf/PlatformInfo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dangeredwolf/PlatformInfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangeredwolf%2FPlatformInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangeredwolf%2FPlatformInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangeredwolf%2FPlatformInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangeredwolf%2FPlatformInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dangeredwolf","download_url":"https://codeload.github.com/dangeredwolf/PlatformInfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangeredwolf%2FPlatformInfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32234799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":[],"created_at":"2024-11-20T03:00:12.546Z","updated_at":"2026-04-24T18:06:41.355Z","avatar_url":"https://github.com/dangeredwolf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlatformInfo\nA simple, powerful library for comparing users' browsers and devices. It's small, taking up about 5 kb *before* gzip.\n\n## It does things you would expect \n* OS type\n* OS version\n* Browser type\n* Browser version\n\n## ... but also has more useful features\n* CPU architecture (Including differentiating Intel and Apple silicon Macs)\n* Dealing with iPads using macOS user agents\n* OS and Browser version comparisons built in\n* Manually specifying a user agent to use instead of fetching the user's\n\n## How to use it?\nYou can use `PlatformInfoStandalone.js` as a standalone JavaScript file, or `PlatformInfo.js` to integrate it as an ES module with build systems like Webpack and Rollup.\n\n```\nimport { PlatformInfo } from \"PlatformInfo.js\";\n\nlet platform = new PlatformInfo;\n\nconsole.log(platform.architecture);\n// ---\u003e amd64\n```\n\n# [How to use it](https://github.com/dangeredwolf/PlatformInfo/blob/master/docs/api.md)\n### [How to build it yourself](https://github.com/dangeredwolf/PlatformInfo/blob/master/docs/build.md)\n\n## Limitations\n* Does not work on browsers that don't support ECMAScript 5. This includes browsers like Internet Explorer 8 and really old versions of current browsers. Internet Explorer 11 does work, however. \n* When an iPad is spoofing a Mac user agent, it uses a macOS version number. However, when calling `getOSVersion`, it will instead return the Safari version number, which will have the same major version number but may have a differing minor version number.\n* Apple Silicon detection is flaky on Safari (Mac) 14 and later, and can be impeded by browser extensions. It is recommended if you have a download page to continue making both versions available for users.\n* iOS 10 and earlier report architecture as \"arm\", as there is no way to differentiate between 32 and 64 bit on that platform.\n* Android and Windows Mobile/Phone do not disclose architecture \n* There is no way to differentiate 32 and 64 bit OS X (macOS). It uses the OS version and browser version to guess if it's x86 or amd64\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdangeredwolf%2Fplatforminfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdangeredwolf%2Fplatforminfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdangeredwolf%2Fplatforminfo/lists"}