{"id":15509765,"url":"https://github.com/willin/uua","last_synced_at":"2026-04-13T11:32:46.281Z","repository":{"id":57155031,"uuid":"286249595","full_name":"willin/uua","owner":"willin","description":"Unbelievable User-Agent Module for both Node.js and Browser","archived":false,"fork":false,"pushed_at":"2020-08-17T01:38:37.000Z","size":317,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T23:31:34.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"willin"}},"created_at":"2020-08-09T14:08:51.000Z","updated_at":"2020-08-17T01:38:39.000Z","dependencies_parsed_at":"2022-09-07T18:11:33.777Z","dependency_job_id":null,"html_url":"https://github.com/willin/uua","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/willin/uua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fuua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fuua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fuua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fuua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/uua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fuua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-10-02T09:43:47.721Z","updated_at":"2026-04-13T11:32:46.262Z","avatar_url":"https://github.com/willin.png","language":"TypeScript","funding_links":["https://github.com/sponsors/willin"],"categories":[],"sub_categories":[],"readme":"# uua - Unbelievable UserAgent\n\n## Usage\n\n### Core\n\n```js\nimport uua from '@uua/core';\n\n// Pass in UserAgent string\n// const ua = navigator.userAgent;\n// const ua = ctx.request.headers['user-agent'];\nuua(ua);\n```\n\nResult Structure:\n\n```js\n{\n  \"browser\": {\n    \"title\": \"Safari\",\n    \"version\": \"6.0\",\n    \"code\": \"safari\",\n    \"icon\": \"/device/safari.png\"\n  },\n  // or undefined\n  \"device\": {\n    \"title\": \"iPod\",\n    \"version\": \"iOS 6.0.1\",\n    \"code\": \"iphone\",\n    \"icon\": \"/net/iphone.png\"\n  },\n  \"os\": {\n    \"title\": \"Mac\",\n    \"version\": \"\",\n    \"code\": \"mac-3\",\n    \"icon\": \"/os/mac-3.png\"\n  }\n}\n```\n\n### Icons \u0026 CDN\n\nYou may fork `@uua/icons` (Source: \u003chttps://github.com/willin/uua-icons\u003e) and make your own icon design.\n\nBy default, `uua` is using [jsdelivr](https://www.jsdelivr.com/package/npm/@uua/icons) CDN\n\n### ip2c\n\n```js\nimport ip2c from '@uua/ip2c';\n\n// in async function\nawait ip2c();\n```\n\nResult Structure:\n\n```js\n{\n  \"code\": \"CN\",\n  \"country\": \"China\",\n  \"icon\": \"/flag/cn.png\"\n}\n```\n\n## Packages\n\n- `uua` (Please use `@uua/core` instead)\n- `@uua/core`: Core Lib\n- `@uua/icons`: Image Materials (\u003chttps://github.com/willin/uua-icons\u003e)\n\n## LICENSE\n\nApache-2.0\n\n![qr](https://user-images.githubusercontent.com/1890238/89126156-0f3eeb80-d516-11ea-9046-5a3a5d59b86b.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fuua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fuua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fuua/lists"}