# timerlist

> Timerlist is a small module that allows you to have a reference of your timers.

Latest version **1.1.0** (published 2017-11-25) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2017-11-25 |
| First published | 2017-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Fabio Ricali |
| Maintainers | fabioricali |
| Keywords | timers, setTimeout, setInterval |

## Links

- npm: https://www.npmjs.com/package/timerlist
- Repository: https://github.com/fabioricali/timerlist
- Homepage: https://github.com/fabioricali/timerlist#readme
- Issues: https://github.com/fabioricali/timerlist/issues
- npm.io page: https://npm.io/package/timerlist

## Recent versions

- 1.1.0 (latest) — 2017-11-25
- 1.0.2 — 2017-08-15
- 1.0.1 — 2017-08-15

## README

<div align="center">
<br/><br/>
<h1>TimerList</h1>
<br/><br/>
Timerlist is a small module that allows you to have a reference of your timers.
<br/><br/>
<a href="https://travis-ci.org/fabioricali/timerlist" target="_blank"><img src="https://travis-ci.org/fabioricali/timerlist.svg?branch=master" title="Build Status"/></a>
<a href="https://coveralls.io/github/fabioricali/timerlist?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/fabioricali/timerlist/badge.svg?branch=master" title="Coverage Status"/></a>
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" title="License: MIT"/></a>
<img src="https://img.shields.io/badge/team-terrons-orange.svg" title="Team Terrons"/>
</div>

## Installation

### Node.js
```
npm install timerlist --save
```

## Example
```javascript
const TimerList = require('timerlist');
const timer = new TimerList();

// Adds a timeout timer
timer.setTimeout('my timer', ()=>{
    console.log('timer boom');
}, 2000);

// Adds an interval timer
timer.setInterval('my timer', ()=>{
    console.log('timer next');
}, 100);

// Passing params to listener
timer.setTimeout('my timer', (param)=>{
    console.log('a param', param);
}, 2000, 'Hello');

// Destroy timeout timer
timer.clearTimeout('my timeout');

// Destroy interval timer
timer.clearInterval('my interval');

// Destroy all timers
timer.clearAll();
```

### API Documentation
See <a href="https://github.com/fabioricali/timerlist/blob/master/api.md">https://github.com/fabioricali/timerlist/blob/master/api.md</a>

### Browser

#### Local
```html
<script src="node_modules/timerlist/dist/timerlist.min.js"></script>
```

#### CDN unpkg
```html
<script src="https://unpkg.com/timerlist/dist/timerlist.min.js"></script>
```

#### CDN jsDeliver
```html
<script src="https://cdn.jsdelivr.net/npm/timerlist/dist/timerlist.min.js"></script>
```

## Changelog
You can view the changelog <a target="_blank" href="https://github.com/fabioricali/timerlist/blob/master/CHANGELOG.md">here</a>

## License
TimerList is open-sourced software licensed under the <a target="_blank" href="http://opensource.org/licenses/MIT">MIT license</a>

## Author
<a target="_blank" href="http://rica.li">Fabio Ricali</a>

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