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.
- Host: GitHub
- URL: https://github.com/mini-eggs/mouse-activity
- Owner: mini-eggs
- License: mit
- Created: 2018-10-17T23:26:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T00:22:39.000Z (over 7 years ago)
- Last Synced: 2025-05-23T07:41:56.892Z (about 1 year ago)
- Topics: active, activity, mouse
- Language: JavaScript
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```