# raf-queue

> Batch jobs to fire in the next frame using requestAnimationFrame.

Latest version **0.2.0** (published 2014-05-25) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-05-25 |
| First published | 2014-04-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | anthonyshort |

## Links

- npm: https://www.npmjs.com/package/raf-queue
- npm.io page: https://npm.io/package/raf-queue

## Dependencies (1)

- [component-raf](https://npm.io/package/component-raf.md) 1.1.3

## Recent versions

- 0.2.0 (latest) — 2014-05-25
- 0.0.1 — 2014-04-16

## README

# raf-queue

Batch jobs to fire in the next frame using requestAnimationFrame.

## Installation

with component:

```
component install anthonyshort/raf-queue
```

with browserify and friends:

```
npm install raf-queue
```

## Usage

```js
var frame = require('raf-queue');

// Add jobs to the job, returns an id
var job = frame.add(increment);

// Remove jobs from the queue
frame.remove(job);

// Fires after the jobs from the next frame are done
frame.defer(function(){
  console.log('job done!');
});
```

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