{"id":23817889,"url":"https://github.com/lsongdev/nagent","last_synced_at":"2026-06-12T21:32:41.377Z","repository":{"id":57161547,"uuid":"116235298","full_name":"lsongdev/nagent","owner":"lsongdev","description":"simple user-agent parser for Node.js","archived":false,"fork":false,"pushed_at":"2019-07-12T06:22:14.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-17T22:52:28.056Z","etag":null,"topics":["ua-parser","user-agent"],"latest_commit_sha":null,"homepage":"https://npmjs.org/nagent","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.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":"2018-01-04T08:32:26.000Z","updated_at":"2024-07-08T14:28:08.000Z","dependencies_parsed_at":"2022-09-09T16:23:45.288Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/nagent","commit_stats":null,"previous_names":["song940/ua-parser","lsongdev/nagent","song940/user-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsongdev/nagent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnagent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnagent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnagent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnagent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/nagent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnagent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34263871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["ua-parser","user-agent"],"created_at":"2025-01-02T05:49:00.360Z","updated_at":"2026-06-12T21:32:41.345Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## nagent [![nagent](https://img.shields.io/npm/v/nagent.svg)](https://npmjs.org/nagent)\n\n\u003e \n\n### Installation\n\n```bash\n$ npm install nagent\n```\n\n### Example\n\n```js\nconst UserAgent = require('nagent');\n\nconst ua = UserAgent.parse('Mozilla/5.0 (iPhone; CPU iPhone OS 9_2_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13D15 MicroMessenger/6.3.9 NetType/WIFI Language/zh_CN');\n\n// [\n//   {\n//     \"ProductName\": \"Mozilla\",\n//     \"ProductVersion\": \"5.0\",\n//     \"SystemInformation\": {\n//       \"Platform\": \"iPhone\",\n//       \"ReleaseVersion\": \"CPU iPhone OS 11_0_3 like Mac OS X\",\n//       \"_\": []\n//     }\n//   },\n//   {\n//     \"PlatformName\": \"AppleWebKit\",\n//     \"PlatformVersion\": \"604.1.38\",\n//     \"PlatformDetail\": \"KHTML, like Gecko\"\n//   },\n//   {\n//     \"PlatformName\": \"Mobile\",\n//     \"PlatformVersion\": \"15A432\"\n//   },\n//   {\n//     \"PlatformName\": \"Nebula\"\n//   },\n//   {\n//     \"PlatformName\": \"PSDType\",\n//     \"PlatformDetail\": \"1\"\n//   },\n//   {\n//     \"PlatformName\": \"AlipayDefined\",\n//     \"PlatformDetail\": \"nt:WIFI,ws:320|504|2.0\"\n//   },\n//   {\n//     \"PlatformName\": \"AliApp\",\n//     \"PlatformDetail\": \"AP/10.1.5.102407\"\n//   },\n//   {\n//     \"PlatformName\": \"AlipayClient\",\n//     \"PlatformVersion\": \"10.1.5.102407\"\n//   },\n//   {\n//     \"PlatformName\": \"Alipay\"\n//   },\n//   {\n//     \"PlatformName\": \"Language\",\n//     \"PlatformVersion\": \"en\"\n//   }\n// ]\n\n\n```\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### ISC\n\nThis work is licensed under the [ISC license](./LICENSE).\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fnagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnagent/lists"}