# raf-q

> Enqueue operations for later processing in a requestAnimationFrame() callback

Latest version **0.1.1** (published 2014-08-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install raf-q
pnpm add raf-q
yarn add raf-q
bun add raf-q
```

## 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.1.1 |
| Published | 2014-08-17 |
| First published | 2014-08-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jason Frame |
| Maintainers | jaz303 |
| Keywords | raf, queue, requestAnimationFrame |

## Links

- npm: https://www.npmjs.com/package/raf-q
- Repository: https://github.com/jaz303/raf-q
- Issues: https://github.com/jaz303/raf-q/issues
- npm.io page: https://npm.io/package/raf-q

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-08-17
- 0.1.0 — 2014-08-01
- 0.0.3 — 2014-08-01
- 0.0.2 — 2014-08-01
- 0.0.1 — 2014-08-01

## README

# raf-q

Enqueue operations for later processing in a requestAnimationFrame() callback.

## Installation

## npm/browserify

Get it:

    npm install --save raf-q

Require it:

    var rafq = require('raf-q');

## UMD

Copy and paste either `build/dom-q.js` or `build/dom-q.min.js` into your project.

### API

#### `var q = rafq(exec)`

Create a queue with given executor function `exec`.

#### `q.push(op)`

Enqueue operation `op` for processing. Each time the queue is drained the executor function passed to the constructor will be invoked sequentially, receiving each queued operation as parameter.

#### `q.after(cb)`

Enqueue callback function `cb` to be called during the next processing batch, once all other operations in the queue have been applied.

## Copyright &amp; License

&copy; 2014 Jason Frame [ [@jaz303](http://twitter.com/jaz303) / [jason@onehackoranother.com](mailto:jason@onehackoranother.com) ]

Released under the ISC license.

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