{"id":20591423,"url":"https://github.com/airtap/match-browsers","last_synced_at":"2026-05-06T11:31:39.951Z","repository":{"id":40576947,"uuid":"244147426","full_name":"airtap/match-browsers","owner":"airtap","description":"Match browser manifests to a desired set of browsers.","archived":false,"fork":false,"pushed_at":"2023-02-01T11:00:53.000Z","size":170,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-14T23:17:12.843Z","etag":null,"topics":["airtap","browsers","nodejs","npm-package","zuul"],"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/airtap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-01T12:43:52.000Z","updated_at":"2021-04-24T08:58:16.000Z","dependencies_parsed_at":"2023-02-17T04:45:56.322Z","dependency_job_id":null,"html_url":"https://github.com/airtap/match-browsers","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/airtap/match-browsers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtap%2Fmatch-browsers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtap%2Fmatch-browsers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtap%2Fmatch-browsers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtap%2Fmatch-browsers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airtap","download_url":"https://codeload.github.com/airtap/match-browsers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtap%2Fmatch-browsers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260027159,"owners_count":22947791,"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":["airtap","browsers","nodejs","npm-package","zuul"],"created_at":"2024-11-16T07:40:18.016Z","updated_at":"2026-05-06T11:31:34.913Z","avatar_url":"https://github.com/airtap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# airtap-match-browsers\n\n\u003e **Match [browser manifests](https://github.com/airtap/browser-manifest) to a desired set of browsers.**  \n\u003e Replaces [`sauce-browsers`](https://github.com/lpinca/sauce-browsers) in conjunction with [`airtap-sauce-browsers`](https://github.com/airtap/sauce-browsers).\n\n[![npm status](http://img.shields.io/npm/v/airtap-match-browsers.svg)](https://www.npmjs.org/package/airtap-match-browsers)\n[![node](https://img.shields.io/node/v/airtap-match-browsers.svg)](https://www.npmjs.org/package/airtap-match-browsers)\n[![Travis](https://img.shields.io/travis/com/airtap/match-browsers.svg)](https://travis-ci.com/airtap/match-browsers)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Usage\n\n```js\nconst sauce = require('airtap-sauce-browsers').promise\nconst match = require('airtap-match-browsers')\n\n// Browsers available on Sauce Labs, as manifests\nconst available = await sauce()\n\n// Browsers that we want, by manifest properties\nconst wanted = [\n  { name: 'firefox', platform: 'linux' },\n  { name: 'chrome', version: '78..latest' },\n  { name: 'ios safari', version: '13' }\n]\n\n// Find matches\nconst manifests = match(available, wanted)\n```\n\n## Properties to match on\n\n### `name`\n\nRequired, must be a string. Matched loosely using [`browser-names`](https://github.com/airtap/browser-names).\n\n### `version`\n\nDefaults to \"latest\". Supported forms (compatible with Zuul \u0026 Airtap):\n\n- An exact or partial version (\"6\" matches \"6.0\").\n- A keyword, one of \"oldest\" (first version) or \"latest\" (last stable version).\n- A range in the form of `\u003cstart\u003e..\u003cend\u003e`, where `start` and `end` are either a version or a keyword. This will result in one or more matches.\n- A negative range in the form of `-\u003cn\u003e..latest`, for example `-1..latest` which means the last 2 stable versions.\n- A prerelease version like \"dev\", \"beta\", \"80.0a1\". Such versions sort after stable versions, so that `oldest..latest` excludes \"dev\" and `latest..dev` includes e.g. latest, \"beta\" and \"dev\".\n- An array of versions.\n\nIf a manifest doesn't have a `version`, it behaves like a prerelease.\n\n### `platform` and any other (nested) property\n\nYet to document. A quick example:\n\n```js\nconst manifests = match(available, [{\n  name: 'chrome for android',\n  version: '10',\n  capabilities: {\n    appium: {\n      // Select a specific emulator (case-insensitive)\n      deviceName: 'google pixel 3a googleapi emulator'\n    }\n  }\n}])\n```\n\n## Specifying options\n\nYet to document.\n\n## Deduplication logic\n\nYet to document.\n\n## Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install airtap-match-browsers\n```\n\n## License\n\n[MIT](LICENSE.md) © 2020-present Vincent Weevers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairtap%2Fmatch-browsers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairtap%2Fmatch-browsers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairtap%2Fmatch-browsers/lists"}