# airtap-sauce-browsers

> Get a list of normalized Sauce Labs browsers as browser manifests

Latest version **0.2.2** (published 2021-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install airtap-sauce-browsers
pnpm add airtap-sauce-browsers
yarn add airtap-sauce-browsers
bun add airtap-sauce-browsers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2021-04-24 |
| First published | 2020-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vincent Weevers |
| Maintainers | vweevers |
| Keywords | airtap, browser, sauce, saucelabs, zuul |

## Links

- npm: https://www.npmjs.com/package/airtap-sauce-browsers
- Repository: https://github.com/airtap/sauce-browsers
- Issues: https://github.com/airtap/sauce-browsers/issues
- npm.io page: https://npm.io/package/airtap-sauce-browsers

## Dependencies (2)

- [browser-names](https://npm.io/package/browser-names.md) ^1.1.0
- [minipass-fetch](https://npm.io/package/minipass-fetch.md) ^1.2.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2021-04-24
- 0.2.1 — 2020-08-16
- 0.2.0 — 2020-07-28
- 0.1.0 — 2020-07-12
- 0.0.4 — 2020-03-27
- 0.0.3 — 2020-03-01
- 0.0.2 — 2020-01-31
- 0.0.1 — 2020-01-25

## README

# airtap-sauce-browsers

> **Get a list of normalized Sauce Labs browsers as [browser manifests](https://github.com/airtap/browser-manifest).**  
> Replaces [`sauce-browsers`](https://github.com/lpinca/sauce-browsers).

[![npm status](http://img.shields.io/npm/v/airtap-sauce-browsers.svg)](https://www.npmjs.org/package/airtap-sauce-browsers)
[![node](https://img.shields.io/node/v/airtap-sauce-browsers.svg)](https://www.npmjs.org/package/airtap-sauce-browsers)
[![Travis](https://img.shields.io/travis/com/airtap/sauce-browsers.svg)](https://travis-ci.com/airtap/sauce-browsers)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Usage

```js
const asb = require('airtap-sauce-browsers').promise
const manifests = await asb()

console.log(manifests)
```

```js
const asb = require('airtap-sauce-browsers').callback

asb(function (err, manifests) {
  if (err) throw err

  console.log(manifests)
})
```

For an example of the output, see [`expected.json`](expected.json). To match browser names to your own preferred alias, you can use [`browser-names`](https://github.com/airtap/browser-names).

## Differences from [`sauce-browsers`](https://github.com/lpinca/sauce-browsers)

**Breaking changes**

- New format
- Does not perform matching, that's handled by [`airtap-match-browsers`](https://github.com/airtap/match-browsers). This just returns a list of all browsers available on Sauce Labs.
- For mobile browsers, the `platform` field previously mapped to the host OS (Linux or MacOS) that runs the Android emulator or iOS simulator. It now maps to either Android or iOS.
- `name: android` only matches _Android Browser_. Previously it could match both _Android Browser_ and _Chrome for Android_. If both were available on a particular Android version then Sauce Labs would pick _Chrome for Android_. If you want to test in _Chrome for Android_, you must now use `name: and_chr` or its more descriptive alias `chrome for android`.
- iOS browsers have the name "ios_saf" (iOS Safari) rather than "ipad" or "iphone". For now, Airtap will match the old names for backwards compatibility.

**Additions**

- Also includes Appium-only browsers (missing in `sauce-browsers`) which notably includes Android 7+ and removes the need for a workaround in Airtap.
- For Android, `airtap-sauce-browsers` includes both _Chrome for Android_ and _Android Browser_ if available. This is not directly reflected in the Sauce Labs API; `airtap-sauce-browsers` infers the availability of the extra browser from `api_name` and `version`.
- Adds `capabilities` for Appium (if a mobile browser), legacy WebDriver (if a desktop browser) and / or W3C WebDriver (if supported by the browser)
- Includes metadata that says whether the browser needs the "loopback" functionality of Airtap.
- Includes `recommendedBackendVersion` for Appium.

## Install

With [npm](https://npmjs.org) do:

```
npm install airtap-sauce-browsers
```

## License

[MIT](LICENSE.md) © 2020-present Vincent Weevers

---
_Source: https://npm.io/package/airtap-sauce-browsers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
