# simplest-timer

> `simplest-timer` is a really simple timer utility. you can timeout, pause, stop and repeat a timer.

Latest version **1.0.1** (published 2017-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install simplest-timer
pnpm add simplest-timer
yarn add simplest-timer
bun add simplest-timer
```

## 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.1 |
| Published | 2017-03-16 |
| First published | 2017-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christian Fei, crifei93@gmail.com |
| Maintainers | christian_fei |

## Links

- npm: https://www.npmjs.com/package/simplest-timer
- Repository: https://github.com/christian-fei/simplest-timer
- Homepage: https://github.com/christian-fei/simplest-timer#readme
- Issues: https://github.com/christian-fei/simplest-timer/issues
- npm.io page: https://npm.io/package/simplest-timer

## Recent versions

- 1.0.1 (latest) — 2017-03-16
- 1.0.0 — 2017-03-12

## README

# simplest-timer

`simplest-timer` is a really simple timer utility. you can timeout, pause, stop and repeat a timer.

## installation

```shell
npm install --save simplest-timer
```

# usage

create an instance of simplestTimer:

```javascript
const simplestTimer = require('simplest-timer')
```

## `.timeout`

runs a function after a given duration.

```javascript
const callbackFn = () => console.log('hey!')
const duration = 100
simplestTimer.timeout(callbackFn, duration)
```

## `.stop`

stops a current timer.

```javascript
simplestTimer.timeout(callbackFn, duration)
simplestTimer.stop()
```

## `.interval`

runs a function repeatedly at a given interval.
```javascript
const callbackFn = () => console.log('hey!')
const duration = 100
simplestTimer.interval(callbackFn, duration)
```

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