# browser-capabilities

> Detect browser capabilities from a user agent string.

Latest version **1.1.4** (published 2019-05-31) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install browser-capabilities
pnpm add browser-capabilities
yarn add browser-capabilities
bun add browser-capabilities
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-05-31 |
| First published | 2017-08-09 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0 |
| Dependencies | 2 |
| Unpacked size | 23.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 437 |
| Author | The Polymer Project Authors |
| Maintainers | aomarks, azakus, bicknellr, emarquez, justinfagnani, keanulee, notwaldorf, polymer-devs, samli, sorvell, tvanderlippe, usergenic |

## Links

- npm: https://www.npmjs.com/package/browser-capabilities
- Repository: https://github.com/Polymer/tools
- Homepage: https://github.com/Polymer/tools/tree/master/packages/browser-capabilities
- Issues: https://github.com/Polymer/tools/issues
- npm.io page: https://npm.io/package/browser-capabilities

## Dependencies (2)

- [ua-parser-js](https://npm.io/package/ua-parser-js.md) ^0.7.15
- [@types/ua-parser-js](https://npm.io/package/@types/ua-parser-js.md) ^0.7.31

## Recent versions

- 1.1.4 (latest) — 2019-05-31
- 1.1.3 — 2018-11-16
- 1.1.2 — 2018-08-20
- 1.1.1 — 2018-06-28
- 1.1.0 — 2018-05-04
- 1.0.0 — 2018-04-24
- 0.2.2 — 2018-01-02
- 0.2.1 — 2017-10-18
- 0.2.0 — 2017-08-09
- 0.1.1 — 2017-08-09
- 0.1.0 — 2017-08-09

## README

[![NPM version](http://img.shields.io/npm/v/browser-capabilities.svg)](https://www.npmjs.com/package/browser-capabilities)

# browser-capabilities

A JavaScript library that detects browser capabilities from a user agent string.

The following keywords are supported. See [browser-capabilities.ts](https://github.com/Polymer/tools/blob/master/packages/browser-capabilities/src/browser-capabilities.ts) for the latest browser support matrix.

| Keyword       | Description
| :----         | :----
| push          | [HTTP/2 Server Push](https://developers.google.com/web/fundamentals/performance/http2/#server-push)
| serviceworker | [Service Worker API](https://developers.google.com/web/fundamentals/getting-started/primers/service-workers)
| modules       | [JavaScript Modules](https://www.chromestatus.com/feature/5365692190687232) (including dynamic `import()` and `import.meta`)
| es2015        | [ECMAScript 2015 (aka ES6)](https://developers.google.com/web/shows/ttt/series-2/es2015)
| es2016        | ECMAScript 2016
| es2017        | ECMAScript 2017
| es2018        | ECMAScript 2018

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