# are-passive-events-supported

> Check if the browser supports passive event listeners.

Latest version **1.1.1** (published 2019-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install are-passive-events-supported
pnpm add are-passive-events-supported
yarn add are-passive-events-supported
bun add are-passive-events-supported
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-03-26 |
| First published | 2018-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Mateusz Burzyński |
| Maintainers | andarist |

## Links

- npm: https://www.npmjs.com/package/are-passive-events-supported
- Repository: https://github.com/Andarist/are-passive-events-supported
- Homepage: https://github.com/Andarist/are-passive-events-supported#readme
- Issues: https://github.com/Andarist/are-passive-events-supported/issues
- npm.io page: https://npm.io/package/are-passive-events-supported

## Recent versions

- 1.1.1 (latest) — 2019-03-26
- 1.1.0 — 2019-02-04
- 1.0.0 — 2018-11-10

## README

# are-passive-events-supported

Check if the browser supports passive event listeners.

## Example

```js
import arePassiveEventsSupported from 'are-passive-events-supported'

window.addEventListener(
  'touchstart',
  () => {
    console.log('touchstart')
  },
  arePassiveEventsSupported() ? { passive: true } : undefined,
)
```

## Similar projects

- [detect-passive-events](https://github.com/rafrex/detect-passive-events)

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