{"id":23050928,"url":"https://github.com/ahmedrangel/rand-user-agent","last_synced_at":"2025-08-15T03:31:41.587Z","repository":{"id":216152881,"uuid":"740418910","full_name":"ahmedrangel/rand-user-agent","owner":"ahmedrangel","description":"This is an adapted version of rand-user-agent by WebScrapingAPI specifically designed for environments lacking access to server file systems (fs), such as Cloudflare Workers.","archived":false,"fork":false,"pushed_at":"2024-11-05T15:36:57.000Z","size":2692,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-05T15:46:46.999Z","etag":null,"topics":["agent","cloudflare-workers","nodejs","random","random-user-agent","randomizer","user","user-agent"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@ahmedrangel/rand-user-agent","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"WebScrapingAPI/rand-user-agent","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmedrangel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T10:01:51.000Z","updated_at":"2024-11-05T15:37:00.000Z","dependencies_parsed_at":"2024-02-25T22:31:28.533Z","dependency_job_id":"9b69b8a9-b892-4483-9b83-b084929c510b","html_url":"https://github.com/ahmedrangel/rand-user-agent","commit_stats":null,"previous_names":["ahmedrangel/rand-user-agent"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrangel%2Frand-user-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrangel%2Frand-user-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrangel%2Frand-user-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrangel%2Frand-user-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedrangel","download_url":"https://codeload.github.com/ahmedrangel/rand-user-agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229890098,"owners_count":18140042,"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":["agent","cloudflare-workers","nodejs","random","random-user-agent","randomizer","user","user-agent"],"created_at":"2024-12-15T23:39:33.923Z","updated_at":"2024-12-15T23:39:34.432Z","avatar_url":"https://github.com/ahmedrangel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random User Agent\n\nThis is an adapted version of [rand-user-agent by WebScrapingAPI](https://www.npmjs.com/package/rand-user-agent) specifically designed for environments lacking access to server file systems (fs), such as Cloudflare Workers.\n\n## Installation\n\nRun the following command in the main folder of your project:\n\n```shell\n# Using npm\nnpm i @ahmedrangel/rand-user-agent\n\n# Using pnpm\npnpm add @ahmedrangel/rand-user-agent\n\n# Using yarn\nyarn add @ahmedrangel/rand-user-agent\n```\n\n## Usage Example \n\n```js\nimport { randUA } from \"@ahmedrangel/rand-user-agent\";\n\n// ...\n\nconst agent = randUA(\"desktop\");\n\nconsole.log(agent);\n```\n\nYou can also provide a browser and an operating system in the parameters of randUA in order to filter out the user agents:\n\n```js\nimport { randUA } from \"@ahmedrangel/rand-user-agent\";\n\n// ...\n\nconst agent = randUA(\"desktop\", \"chrome\", \"linux\");\n\nconsole.log(agent);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedrangel%2Frand-user-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedrangel%2Frand-user-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedrangel%2Frand-user-agent/lists"}