# use-interval-with-timeout

> Custom setInterval with timeout.

Latest version **1.0.0** (published 2020-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-interval-with-timeout
pnpm add use-interval-with-timeout
yarn add use-interval-with-timeout
bun add use-interval-with-timeout
```

## 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.0 |
| Published | 2020-12-30 |
| First published | 2020-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0 |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | neogeek |
| Keywords | interval, timeout |

## Links

- npm: https://www.npmjs.com/package/use-interval-with-timeout
- Repository: https://github.com/neogeek/use-interval-with-timeout
- Issues: https://github.com/neogeek/use-interval-with-timeout/issues
- npm.io page: https://npm.io/package/use-interval-with-timeout

## Recent versions

- 1.0.0 (latest) — 2020-12-30

## README

# use-interval-with-timeout

> Custom setInterval with timeout.

## Install

```bash
$ npm install use-interval-with-timeout
```

## Usage

```javascript
const useIntervalWithTimeout = require('use-interval-with-timeout');

const [currentIteration, cancelInterval] = useIntervalWithTimeout(
    countdown => console.log(`countdown ${countdown}`),
    () => console.log('done'),
    1000,
    30
);
```

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