# run-with-fps

> Runs a function with given FPS

Latest version **2.1.0** (published 2021-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install run-with-fps
pnpm add run-with-fps
yarn add run-with-fps
bun add run-with-fps
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-11-25 |
| First published | 2018-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Alexander Lunyov |
| Maintainers | sunify |

## Links

- npm: https://www.npmjs.com/package/run-with-fps
- Repository: https://github.com/sunify/run-with-fps
- Homepage: https://github.com/sunify/run-with-fps#readme
- Issues: https://github.com/sunify/run-with-fps/issues
- npm.io page: https://npm.io/package/run-with-fps

## Recent versions

- 2.1.0 (latest) — 2021-11-25
- 2.0.0 — 2021-10-24
- 1.0.4 — 2018-11-29
- 1.0.3 — 2018-11-29
- 1.0.2 — 2018-11-05
- 1.0.1 — 2018-11-02
- 1.0.0 — 2018-11-02

## README

# run-with-fps

Runs a function with given FPS

## Usage

```es6
import runWithFPS from 'run-with-fps';

const stop = runWithFPS((delta) => {
  console.log(delta); // ms between prev and current frame
  // draw something here
}, 60);

stop(); // this will stop running

```

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