# debounced-seeker

> small utility function to move a cursor back and forward and trigger a callback after some time of inactivity.

Latest version **1.0.0** (published 2015-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install debounced-seeker
pnpm add debounced-seeker
yarn add debounced-seeker
bun add debounced-seeker
```

## 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 | 2015-01-10 |
| First published | 2015-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Simon Kusterer |
| Maintainers | xat |
| Keywords | seek |

## Links

- npm: https://www.npmjs.com/package/debounced-seeker
- Repository: https://github.com/xat/debounced-seeker/
- npm.io page: https://npm.io/package/debounced-seeker

## Recent versions

- 1.0.0 (latest) — 2015-01-10

## README

# debounced-seeker

small utility function to move a cursor back and forward
and trigger a callback after some time of inactivity.

### Usage
```javascript
var seeker = require('debounced-seeker');

var seek = seeker(function(offset) {
  // after 100ms of inactivity (seek-function
  // not getting called) this callback gets
  // triggered. The Cursor gets resetted to 0
  // afterwards.

  console.log(offset); // 2
}, 100);

// cursor is 0 initialy

seek(1); // cursor: 1
seek(1); // cursor: 2
seek(1); // cursor: 3
seek(-1); // cursor: 2
```

### Installation

`npm install debounced-seeker`

## License
MIT

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