# set-frame-out

> Like setTimeout but with frames

Latest version **0.0.8** (published 2022-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install set-frame-out
pnpm add set-frame-out
yarn add set-frame-out
bun add set-frame-out
```

## 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.8 |
| Published | 2022-10-19 |
| First published | 2021-04-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pier25 |

## Links

- npm: https://www.npmjs.com/package/set-frame-out
- Repository: https://github.com/PierBover/set-frame-out
- Homepage: https://github.com/PierBover/set-frame-out#readme
- Issues: https://github.com/PierBover/set-frame-out/issues
- npm.io page: https://npm.io/package/set-frame-out

## Recent versions

- 0.0.8 (latest) — 2022-10-19
- 0.0.7 — 2022-08-17
- 0.0.6 — 2022-06-08
- 0.0.5 — 2021-05-01
- 0.0.4 — 2021-05-01
- 0.0.3 — 2021-04-30
- 0.0.2 — 2021-04-30
- 0.0.1 — 2021-04-30

## README

# setFrameout()

Like `setTimeout()` but with frames instead of milliseconds.

This uses `window.requestAnimationFrame()` so it only works in the browser.

```
npm i set-frame-out
```

```
import {clearFrameout, setFrameout} from 'set-frame-out';

const id = setFrameout(() => {
  console.log('5 frames have passed!');
}, 5);

clearFrameout(id);
```

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