An open API service indexing awesome lists of open source software.

https://github.com/mini-eggs/mouse-activity

A tiny interface for checking if the mouse is active or not.
https://github.com/mini-eggs/mouse-activity

active activity mouse

Last synced: 12 months ago
JSON representation

A tiny interface for checking if the mouse is active or not.

Awesome Lists containing this project

README

          

# Mouse Activity

## Install

```bash
npm i -s mouse-activity
```

## Usage

```javascript
import mouse from "mouse-activity"

mouse()
.active(() => console.log("active"))
.inactive(() => console.log("inactive"))
// .destroy(); // would stop the two func above from being called+listening to mouse movements
```