{"id":25738522,"url":"https://github.com/anzerr/agent.util","last_synced_at":"2025-02-26T07:32:38.750Z","repository":{"id":57098053,"uuid":"287404802","full_name":"anzerr/agent.util","owner":"anzerr","description":"Parse and fetch info found inside user-agent.","archived":false,"fork":false,"pushed_at":"2020-08-28T10:12:25.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T16:16:50.590Z","etag":null,"topics":["html","http","info","nodejs","user-agent","util"],"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/anzerr.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":"2020-08-14T00:13:07.000Z","updated_at":"2020-08-28T10:12:23.000Z","dependencies_parsed_at":"2022-08-20T16:51:00.127Z","dependency_job_id":null,"html_url":"https://github.com/anzerr/agent.util","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzerr%2Fagent.util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzerr%2Fagent.util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzerr%2Fagent.util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzerr%2Fagent.util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anzerr","download_url":"https://codeload.github.com/anzerr/agent.util/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240812014,"owners_count":19861534,"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":["html","http","info","nodejs","user-agent","util"],"created_at":"2025-02-26T07:31:38.571Z","updated_at":"2025-02-26T07:32:38.631Z","avatar_url":"https://github.com/anzerr.png","language":"JavaScript","readme":"\n### `Intro`\n![GitHub Actions status | linter](https://github.com/anzerr/agent.util/workflows/linter/badge.svg)\n![GitHub Actions status | publish](https://github.com/anzerr/agent.util/workflows/publish/badge.svg)\n![GitHub Actions status | test](https://github.com/anzerr/agent.util/workflows/test/badge.svg)\n\nParse and fetch info found inside user-agent\n\n#### `Install`\n``` bash\nnpm install --save git+https://git@github.com/anzerr/agent.util.git\nnpm install --save @anzerr/agent.util\n```\n\n### `Example`\n``` javascript\n\nconst {UserAgent} = require('@anzerr/agent.util');\n\nconst u = new UserAgent();\n\nconst agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36';\nconsole.log(u.get(agent), agent);\n/*\n{\n  os: null,\n  phone: null,\n  tablet: null,\n  valid: { tablet: false, phone: false },\n  uas: [],\n  props: [\n    { key: 'Safari', version: '537.36' },\n    { key: 'Webkit', version: '537.36' },\n    { key: 'Chrome', version: '84.0.4147.105' },\n    { key: 'Windows NT', version: '10.0' }\n  ],\n  utils: [ { key: 'WebKit', version: '537.36' } ]\n} Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36\n*/\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzerr%2Fagent.util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanzerr%2Fagent.util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzerr%2Fagent.util/lists"}