# concall

> Debounce, throttle, delay and repeat

Latest version **1.0.0** (published 2023-05-12) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-05-12 |
| First published | 2023-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Axorax |
| Maintainers | axoraxdev |
| Keywords | debounce, throttle, delay, repeat, concall |

## Links

- npm: https://www.npmjs.com/package/concall
- Repository: https://github.com/Axorax/concall.js
- Homepage: https://github.com/Axorax/concall.js#readme
- Issues: https://github.com/Axorax/concall.js/issues
- npm.io page: https://npm.io/package/concall

## Recent versions

- 1.0.0 (latest) — 2023-05-12

## README

<h1 align="center"><code>concall.js</code></h1>

<p align="center">Debouncing, throttling and more</p>

## ⚙️ Installation

```terminal
npm i concall
```

**CDN Links:**
- https://cdn.jsdelivr.net/npm/concall
- https://www.unpkg.com/concall

## 📖 Usage

#### ◉ Import

```js
// ES6
import concall from "concall";

// commonjs
const concall = require("concall");
```

#### ◉ Debounce

```js
const func = concall.debounce((text) => {
    console.log(text);
}, 2000); // (function, delay)

func("Hello world!");

func("Hello world!");

func("Hello world!");
```

#### ◉ Throttle

```js
const func = concall.throttle((text) => {
    console.log(text);
}, 2000); // (function, delay)

func("Hello world!");

func("Hello world!");

func("Hello world!");
```

#### ◉ Delay

```js
const func = concall.delay((text) => {
    console.log(text);
}, 2000); // (function, delay)

func("Hello world!");
```

#### ◉ Repeat forever

```js
const func = concall.repeat((text) => {
    console.log(text);
}, 2000); // (function, delay)

func("Hello world!");
```

#### ◉ Repeat "n" times

```js
const func = concall.repeat((text) => {
    console.log(text);
}, 2000, 2); // (function, delay, times)

func("Hello world!"); // will repeat 2 times
```

---

[Support me on Patreon](https://www.patreon.com/axorax) — 
[Check out my socials](https://github.com/axorax/socials)

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