{"id":17275109,"url":"https://github.com/daun/modernizr-useragents","last_synced_at":"2025-06-12T05:07:26.384Z","repository":{"id":57300533,"uuid":"274699786","full_name":"daun/modernizr-useragents","owner":"daun","description":"Simple user-agent checks for Modernizr","archived":false,"fork":false,"pushed_at":"2020-06-24T15:15:56.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T06:43:35.377Z","etag":null,"topics":["js","modernizr","useragent"],"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/daun.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-06-24T15:10:52.000Z","updated_at":"2023-07-27T13:04:07.000Z","dependencies_parsed_at":"2022-09-09T21:11:22.282Z","dependency_job_id":null,"html_url":"https://github.com/daun/modernizr-useragents","commit_stats":null,"previous_names":["philippdaun/modernizr-useragents"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/daun/modernizr-useragents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodernizr-useragents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodernizr-useragents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodernizr-useragents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodernizr-useragents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/modernizr-useragents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fmodernizr-useragents/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259402052,"owners_count":22851868,"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":["js","modernizr","useragent"],"created_at":"2024-10-15T08:55:27.521Z","updated_at":"2025-06-12T05:07:26.360Z","avatar_url":"https://github.com/daun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modernizr User-Agent Tests\n\nAdd simple user-agent checks as Modernizr tests.\n\n\u003e :warning: The checks in this package are meant for light-weight corrections to browser engines' rendering quirks. They are too simple and unreliable for critical feature checks.\n\n## Installation\n\n```bash\nnpm install modernizr-useragents\n```\n\n## Usage\n\n### Add specific tests\n\n```js\nimport addUserAgentTests from 'modernizr-useragents'\n\naddUserAgentTests(['firefox', 'safari'])\n```\n\n### Add all available tests\n\n```js\nimport { addAllUserAgentTests } from 'modernizr-useragents'\n\naddAllUserAgentTests()\n```\n\n## Tests\n\nThe following tests are available:\n\n| Name      | Test                                       |\n| --------- | ------------------------------------------ |\n| `ms`      | Microsoft browsers: IE \u0026 pre-chromium Edge |\n| `ipad`    | Safari on iPadOS                           |\n| `iphone`  | Safari on iOS                              |\n| `ipod`    | Safari on iPods' iOS                       |\n| `ios`     | Either `ipad`, `iphone` or `ipod`          |\n| `safari`  | Safari, desktop or phone                   |\n| `firefox` | Firefox                                    |\n\n## License\n\n[MIT License](https://opensource.org/licenses/MIT) © [Philipp Daun](https://philippdaun.net/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fmodernizr-useragents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Fmodernizr-useragents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fmodernizr-useragents/lists"}