# saidai

> A simple wrapper of Fullscreen API.

Latest version **0.0.3** (published 2017-12-12) · 0 weekly downloads

## Install

```sh
npm install saidai
pnpm add saidai
yarn add saidai
bun add saidai
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-12-12 |
| First published | 2017-12-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | fireyy |
| Maintainers | fireyy |
| Keywords | fullscreen, requestFullscreen |

## Links

- npm: https://www.npmjs.com/package/saidai
- Repository: https://github.com/fireyy/saidai
- Homepage: https://github.com/fireyy/saidai#readme
- Issues: https://github.com/fireyy/saidai/issues
- npm.io page: https://npm.io/package/saidai

## Dependencies (1)

- [knot.js](https://npm.io/package/knot.js.md) ^1.1.5

## Recent versions

- 0.0.3 (latest) — 2017-12-12
- 0.0.2 — 2017-12-12
- 0.0.1 — 2017-12-11

## README

# saidai

> A simple wrapper of Fullscreen API.

## Install

This project uses [node](http://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.

```sh
$ npm install --save saidai
```

or if you use [yarn](https://yarnpkg.com).

```sh
$ yarn add saidai
```

Then with a module bundler like [rollup](http://rollupjs.org/) or [webpack](https://webpack.js.org/), use as you would anything else:

```javascript
// using ES6 modules
import saidai from 'saidai'

// using CommonJS modules
var saidai = require('saidai')
```

The [UMD](https://github.com/umdjs/umd) build is also available on [unpkg](https://unpkg.com):

```html
<script src="//unpkg.com/saidai/dist/saidai.umd.js"></script>
```

This exposes the `saidai()` function as a global.

* * *

## Usage

```js
import saidai from 'saidai';

const fullscreen = saidai()

// check if some element is in Fullscreen mode
saidai.isFullscreen()

// Request to Enter Fullscreen mode
saidai.request()

// Exit Fullscreen mode
saidai.exit()

// Listen to `fullscreenchange` event
fullscreen.on('change', isFull => console.log(`Fullscreen mode: ${isFull ? 'ON' : 'OFF'}`))
```

## Examples & Demos

[**Real Example on JSFiddle**](https://jsfiddle.net/fireyy/x1fkk0hb/) ➡️

## API

saidai's API is organized as follows:

### `saidai(options: Object)`

saidai will account for the following properties in options:

  * `param` ....

### `isFullscreen()`

return if some element in Fullscreen mode

### `request()`

Request to Enter Fullscreen mode

### `exit()`

Exit Fullscreen mode

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