# typedtimer

> Wrapper for setTimeout and setInterval

Latest version **1.0.8** (published 2026-03-26) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2026-03-26 |
| First published | 2022-10-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vladislav Artemkin |
| Maintainers | vartemkin |
| Keywords | typescript, setTimeout, setInterval, setImmediate, requestAnimationFrame |

## Links

- npm: https://www.npmjs.com/package/typedtimer
- npm.io page: https://npm.io/package/typedtimer

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2026-03-26
- 1.0.7 — 2023-08-15
- 1.0.6 — 2023-06-22
- 1.0.5 — 2023-06-22
- 1.0.4 — 2022-10-29
- 1.0.3 — 2022-10-29
- 1.0.2 — 2022-10-26
- 1.0.1 — 2022-10-26
- 1.0.0 — 2022-10-25

## README

# typedtimer

EN:
Typescript wrapper for setTimeout, setInterval, setImmediate, requestAnimationFrame

RU:
Typescript обертка над setTimeout, setInterval, setImmediate, requestAnimationFrame

## Installation
```
npm i typedtimer
```

## Usage
```js
import TypedTimer from 'typedtimer';

const timer = new TypedTimer();

// use as timeout
timer.setTimeout(()=>{
	console.log('timeout!');
}, 5000);

// or as interval
timer.setInterval(()=>{
	console.log('interval!');
}, 1000);

// or as immediate
timer.setImmediate(()=>{
	console.log('immediate!');
});

timer.setAnimation(()=>{
	console.log('animation!');
});

...

console.log('isActive:', timer.isActive());

...

// stop all
timer.clear();


```

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