# fortimer

> Manage your JavaScript timer.

Latest version **1.0.8** (published 2023-07-22) · MIT license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2023-07-22 |
| First published | 2023-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | requesttimeout |
| Keywords | npm, init |

## Links

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

## Recent versions

- 1.0.8 (latest) — 2023-07-22
- 1.0.7 — 2023-07-22
- 1.0.6 — 2023-07-22
- 1.0.5 — 2023-07-19
- 1.0.4 — 2023-07-19
- 1.0.3 — 2023-07-19
- 1.0.2 — 2023-07-19
- 1.0.1 — 2023-07-19

## README

# fortimer

Manage your JavaScript timer.

## Install

``` node
  npm i fortimer //or yarn add fortimer
```

### Usage

``` js
  import Timer from 'fortimer'
  let timer = new Timer()
  timer.add({
    name: 'test',
    repeat: true,
    func: () => {
      console.log(new Date())
    }
  })
```

* add(obj = {})
  * {Object} config
    * {String} name: timer name
    * {Boolean} repeat: default `false`,`true` for setInterval(),`false` for setTimeout()
    * {Number} duration: timer duraion,default `1000`ms

  ``` js
    timer.add({
      name: 'test',
      repeat: true,
      duration: 10e3,
      func: ()=>{
        console.log(new Date())
      }
    });
    // return timer
  ```
* getAll()
  ``` js
    timer.getAll();
  ```
* remove(name)
  * {String} name: timer name

  ``` js
    timer.remove('test');
  ```
* removeAll()
  ``` js
    timer.removeAll();
  ```

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