# human-timer

> Tiny, human readable timer with no external dependencies. Specify the duration in seconds, add callbacks to timer ticks and end, stop it at any moment.

Latest version **1.0.0** (published 2018-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install human-timer
pnpm add human-timer
yarn add human-timer
bun add human-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.0 |
| Published | 2018-12-02 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ol-web |
| Maintainers | ol-web |
| Keywords | timer, countdown, human-timer |

## Links

- npm: https://www.npmjs.com/package/human-timer
- Repository: https://github.com/oL-web/human-timer
- Homepage: https://github.com/oL-web/human-timer#readme
- Issues: https://github.com/oL-web/human-timer/issues
- npm.io page: https://npm.io/package/human-timer

## Recent versions

- 1.0.0 (latest) — 2018-12-02

## README

# human-timer

Tiny, human readable timer with no external dependencies. Specify the duration in seconds, add callbacks to timer ticks and end, stop it at any moment.

* * *

### Installation:

`npm install --save human-timer`  

Test

`npm run test`  

* * *

### Usage:

```javascript
const timer = new HumanTimer({
    seconds: 7200, // 2 hour long duration
    zeroes: false, // won't turn 5 mins into 05 mins, default is true
    onEnd: () => console.log("END"),
    onTick: () => console.log(timer.hours, timer.minutes, timer.seconds)
});

timer.start();
timer.stop();
timer.restart(60);
```

* * *

### Is there something wrong?

Please tell me!

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