# set-harmonic-interval

> Works similar to `setInterval`, but calls all callbacks scheduled using `setHarmonicInterval` all at once, which have same delay in milliseconds.

Latest version **1.0.1** (published 2019-10-23) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install set-harmonic-interval
pnpm add set-harmonic-interval
yarn add set-harmonic-interval
bun add set-harmonic-interval
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-23 |
| First published | 2019-08-25 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=6.9 |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | streamich |
| Maintainers | streamich |

## Links

- npm: https://www.npmjs.com/package/set-harmonic-interval
- Repository: https://github.com/streamich/set-harmonic-interval
- Issues: https://github.com/streamich/set-harmonic-interval/issues
- npm.io page: https://npm.io/package/set-harmonic-interval

## Recent versions

- 1.0.1 (latest) — 2019-10-23
- 1.0.0 — 2019-08-25

## README

# set-harmonic-interval

Works similar to `setInterval`, but calls all callbacks scheduled using `setHarmonicInterval` all at once, which have same
delay in milliseconds.

## Install

```
npm install set-harmonic-interval
```

## Usage

In below example `1` and `2` will always be printed together every second.

```js
const { setHarmonicInterval, clearHarmonicInterval } = require('set-harmonic-interval');

setHarmonicInterval(() => console.log(1), 1000);
setTimeout(() => {
  setHarmonicInterval(() => console.log(2), 1000);
}, 500);
```


## License

[Unlicense](LICENSE) &mdash; public domain.

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