# browserstack-filter-tool

> Filter out the most recent browsers from Browserstack API

Latest version **0.1.14** (published 2019-11-26) · See LICENSE license · 0 weekly downloads

## Install

```sh
npm install browserstack-filter-tool
pnpm add browserstack-filter-tool
yarn add browserstack-filter-tool
bun add browserstack-filter-tool
```

## 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.1.14 |
| Published | 2019-11-26 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | See LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | I-Ju Lin |
| Maintainers | lin826 |
| Keywords | browserstack-plugin, browserstack |

## Links

- npm: https://www.npmjs.com/package/browserstack-filter-tool
- Repository: https://github.com/lin826/browserstack-filter-tool
- Homepage: https://github.com/lin826/browserstack-filter-tool#readme
- Issues: https://github.com/lin826/browserstack-filter-tool/issues
- npm.io page: https://npm.io/package/browserstack-filter-tool

## 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.1.14 (latest) — 2019-11-26
- 0.1.13 — 2019-11-25
- 0.1.12 — 2019-11-25
- 0.1.11 — 2019-11-25
- 0.1.10 — 2019-11-25
- 0.1.9 — 2019-11-25
- 0.1.8 — 2019-11-25
- 0.1.7 — 2019-11-25
- 0.1.6 — 2019-11-25
- 0.1.5 — 2019-11-25
- 0.1.4 — 2019-09-06
- 0.1.3 — 2019-09-05
- 0.1.2 — 2019-09-05
- 0.1.1 — 2019-09-05
- 0.1.0 — 2019-09-04

## README

# BrowserStack Filter Tool

This is a filter tool to select the most recent browsers from BrowserStack API.

No dependency in this project.

But remember to add `browserstack-helper.conf.js` file into your root folder.

## Usage

### Installation

```shell
npm install --save-dev browserstack-filter-tool
```

or

```shell
yarn add -D browserstack-filter-tool
```

### Setting

Manually create a file `browserstack-helper.conf.js` like below:

```javascript
module.exports = {
  // Replace with your Browserstack account's username and accessKey
  username: BROWSERSTACK_USERNAME,
  accessKey: BROWSERSTACK_ACCESS_KEY,

  osList: {
    'OS X': ['Mojave'],
    'Windows': ['10']
  },

  browserList: [ 'edge', 'chrome', 'firefox', 'safari' ],

  excludeList: [
    { os: 'Windows', browser: 'safari' }
  ],

  browserVersionRange: 2,

  templateLauncher: {
    base: 'BrowserStack'
  },

  additionalLaunchers: {
    NameOfLauncher: {
        base: 'ChromeHeadless',
        flags: ['--no-sandbox']
    }
  }
}
```

### Build and Run

Please add a script wherever before `karma start karma.conf.js` (usually in `package.json`).

That is, use

```shell
node ./node_modules/browserstack-filter-tool/launcher-generator.js && karma start karma.conf.js
```

instead of

```shell
karma start karma.conf.js
```

### Import into the configuration

Your configuration can be set like this.

```javascript
// karma.conf.js
const browserstackLaunchers = require('./browserstack-launchers');

module.exports = (config) => {
  config.set({
    ...
    browsers: Object.keys(browserstackLaunchers),
    customLaunchers: browserstackLaunchers,
    ...
  });
};
```

## LICENSE

Please see in LICENSE file.

## NPM

https://www.npmjs.com/package/browserstack-filter-tool

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