# debottle

> JS debounce/throttle portmanteau, now with callback taste

Latest version **1.0.1** (published 2015-12-24) · MIT license · 0 weekly downloads

## Install

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

## 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 | 1.0.1 |
| Published | 2015-12-24 |
| First published | 2015-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ex-machine |
| Maintainers | ex-machine |

## Links

- npm: https://www.npmjs.com/package/debottle
- Homepage: https://github.com/ex-machine/debottle
- npm.io page: https://npm.io/package/debottle

## Dependencies (1)

- [apply-fn](https://npm.io/package/apply-fn.md) ^1.0.3

## Recent versions

- 1.0.1 (latest) — 2015-12-24

## README

# debottle

JS debounce/throttle portmanteau, now with callback taste.

Supports error-first Node.js-styled callbacks.

## Install

### NPM

    npm install --save ng-debottle

### Bower

    bower install --save ng-debottle

## Usage

```javascript
var debounce = require('debottle').debounce;
var throttle = require('debottle').throttle;

function fn() { ... }
function optionalCallback(err, data) { ... }

var throttledFn = throttle(fn, null, optionalCallback);
var debouncedFn = debounce(fn, 100, optionalCallback);

throttledFn();
throttledFn();
...

debouncedFn();
debouncedFn();
...
```

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