# fullscreen-handler

> Cross-browser fullscreen handler utility

Latest version **0.0.2** (published 2017-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install fullscreen-handler
pnpm add fullscreen-handler
yarn add fullscreen-handler
bun add fullscreen-handler
```

## 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.0.2 |
| Published | 2017-07-11 |
| First published | 2017-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Vadim Namniak |
| Maintainers | namniak |
| Keywords | fullscreen, full-screen |

## Links

- npm: https://www.npmjs.com/package/fullscreen-handler
- Repository: https://github.com/Jam3/fullscreen-handler
- Issues: https://github.com/Jam3/fullscreen-handler/issues
- npm.io page: https://npm.io/package/fullscreen-handler

## Recent versions

- 0.0.2 (latest) — 2017-07-11
- 0.0.1 — 2017-06-26

## README

Cross-browser fullscreen handler utility.
Works in IE10+ and mobile browsers (Android - Chrome , iOS - Chrome + Safari)

## Syntax
```javascript
fullscreenHandler(element [, onEnterCallback, onExitCallback]);
```

## API
* ```enter``` - enter fullscreen
* ```exit``` - exit fullscreen
* ```destroy``` remove all even listeners


## Example
```javascript
import fullscreenHandler from 'fullscreen-handler';

const video = document.querySelector('video');
const fs = fullscreenHandler(video);

video.addEventListener('play', fs.enter);
video.addEventListener('pause', fs.exit);

...

// make sure to destroy when it's time
fs.destroy();

```

## Install
```sh
npm install fullscreen-handler --save
``` 

## License
MIT, see [LICENSE.md](http://github.com/Jam3/fullscreen-handler/blob/master/LICENSE) for details.

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