# screentimer

> An ES6 class, jQuery-free version of robflaherty/screentime.

Latest version **1.2.2** (published 2018-03-19) · MIT license · 0 weekly downloads

## Install

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

## 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.2.2 |
| Published | 2018-03-19 |
| First published | 2018-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joseph Kohlmann |
| Maintainers | kohlmannj |

## Links

- npm: https://www.npmjs.com/package/screentimer
- Repository: https://github.com/kohlmannj/screentimer
- npm.io page: https://npm.io/package/screentimer

## Recent versions

- 1.2.2 (latest) — 2018-03-19
- 1.2.1 — 2018-03-19
- 1.2.0 — 2018-03-19
- 1.1.4 — 2018-03-16
- 1.1.3 — 2018-03-16
- 1.1.2 — 2018-03-16
- 1.1.1 — 2018-03-16
- 1.1.0 — 2018-03-16
- 1.0.5 — 2018-03-16
- 1.0.4 — 2018-03-16
- 1.0.3 — 2018-03-16
- 1.0.2 — 2018-03-16
- 1.0.1 — 2018-03-16
- 1.0.0 — 2018-03-16
- 0.9.1 — 2018-03-16

## README

# Screentimer
An ES6 class, jQuery-free version of [robflaherty/screentime](https://github.com/nytpi/robflaherty/screentime).

## Usage
```js
import Screentimer from 'screentimer';

const element = document.querySelector('#my-element');

// Setup
const timer = new Screentimer(element, count => {
  console.log(`Seen #my-element on-screen for ${count} intervals since the last report.`);
});

// Optional event handler cleanup
timer.destroy();
```

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