# @liuyunjs/timer

> 定时器的封装

Latest version **0.0.4** (published 2019-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @liuyunjs/timer
pnpm add @liuyunjs/timer
yarn add @liuyunjs/timer
bun add @liuyunjs/timer
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2019-09-08 |
| First published | 2019-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | liuyunjs |
| Maintainers | liuyunjs |

## Links

- npm: https://www.npmjs.com/package/@liuyunjs/timer
- Repository: https://github.com/liuyunjs/scroll/tree/master/packages/timer
- npm.io page: https://npm.io/package/@liuyunjs/timer

## Recent versions

- 0.0.4 (latest) — 2019-09-08
- 1.0.0-beta5 (beta) — 2022-07-10
- 1.0.0-beta3 (beta3) — 2021-05-02
- 1.0.0-beta2 (beta2) — 2020-10-11
- 1.0.0-beta1 (beta1) — 2020-10-09
- 1.0.0-beta4 — 2022-05-17
- 0.0.3 — 2019-09-01
- 0.0.2 — 2019-08-31
- 0.0.1 — 2019-08-26

## README

## install

---

```javascript
@npm: npm install @liuyunjs/timer -S

@yarn: yarn add @liuyunjs/timer
```

## Quick 

---
```javascript
import Timer from '@liuyunjs/timer';

const timer = new Timer();

timer.setTimeout(() => console.log('hello world'), 1000);
timer.clearTimeout();

timer.setInterval(() => console.log('hello world'), 1000);
timer.clearInterval();

timer.rAF(() => console.log('hello world'));
timer.cAF();
```

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