# tick-of-clock

> Timer and stopwatch

Latest version **0.1.1** (published 2017-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install tick-of-clock
pnpm add tick-of-clock
yarn add tick-of-clock
bun add tick-of-clock
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-02-25 |
| First published | 2017-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrii Lazurenko |
| Maintainers | alazurenko |
| Keywords | timer, stopwatch |

## Links

- npm: https://www.npmjs.com/package/tick-of-clock
- Repository: https://github.com/alazurenko/tick-of-clock
- Homepage: https://github.com/alazurenko/tick-of-clock#readme
- Issues: https://github.com/alazurenko/tick-of-clock/issues
- npm.io page: https://npm.io/package/tick-of-clock

## Dependencies (1)

- [mitt](https://npm.io/package/mitt.md) ^1.0.1

## Recent versions

- 0.1.1 (latest) — 2017-02-25
- 0.1.0 — 2017-02-18

## README

# tick-of-clock

### Stopwatch || Countdown ⏰ 
```js
const toc = require('tick-of-clock');
let timer = toc();

timer.start(); //starts stopwatch
timer.start(2000); //starts countdown with 2000ms
timer.stop();
timer.reset(); // resets time to 0
timer.getTime(); // returns amount of ms that have passed
```

### Events
`start` 

`stop` 

`reset`

How to use
```js
timer.on('start', () => console.log("Let's Rock!"));
```

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