# c2-debounce-af

> debounce at animationframe

Latest version **2.1.1** (published 2016-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install c2-debounce-af
pnpm add c2-debounce-af
yarn add c2-debounce-af
bun add c2-debounce-af
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2016-01-25 |
| First published | 2015-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | TheC2Group |
| Maintainers | thec2group |

## Links

- npm: https://www.npmjs.com/package/c2-debounce-af
- Repository: https://github.com/TheC2Group/debounce-af
- Issues: https://github.com/TheC2Group/debounce-af/issues
- npm.io page: https://npm.io/package/c2-debounce-af

## Recent versions

- 2.1.1 (latest) — 2016-01-25
- 2.1.0 — 2015-11-23
- 2.0.0 — 2015-10-28

## README

debounce af
===========


install
-------

```sh
$ npm install c2-debounce-af
```


require
-------

```js
var daf = require("c2-debounce-af");
```


api
---

### daf(fn) > debounced

creates a function which, when called, waits until there is no call
until an animation frame is triggered. then executes `fn` with its
the last arguments that has been passed to `debounced`.


example
-------

```js
var render = daf(function (text) {
    div.textContent = text;
});

input.addEventListener('input', function (eventObject) {
    render(eventObject.currentTarget.value)
});
```

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