
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@flywen/global-mouse-events
Advanced tools
Global mouse events listener for Node.js (Windows only)
Global mouse events listener for Node.js (Windows only). Based off of sentialx/mouse-hooks and coldKey1/mouse-hooks.
npm i global-mouse-events
Import the module and register for the mouse events you'd like to listen to.
mouseup
/ mousedown
— Fires when a mouse button is pressed / released.
Returns:
mousemove
— Fires when the mouse cursor is moved.
Returns:
mousewheel
— Fires when the mouse wheel is scrolled. Some trackpads may not fire this event unless "Scroll inactive windows when I hover over them" is disabled in the Windows settings.
Returns:
const mouseEvents = require("global-mouse-events");
mouseEvents.on("mouseup", event => {
console.log(event); // { x: 2962, y: 483, button: 1 }
});
mouseEvents.on("mousedown", event => {
console.log(event); // { x: 2962, y: 483, button: 1 }
});
mouseEvents.on("mousemove", event => {
console.log(event); // { x: 2962, y: 482 }
});
mouseEvents.on("mousewheel", event => {
console.log(event); // { x: 2962, y: 483, delta: -1, axis: 0 }
});
pauseMouseEvents
— Pauses all mouse events.resumeMouseEvents
— Resumes all mouse events.getPaused
— Returns the paused state as a boolean.FAQs
Global mouse events listener for Node.js (Windows only)
The npm package @flywen/global-mouse-events receives a total of 2 weekly downloads. As such, @flywen/global-mouse-events popularity was classified as not popular.
We found that @flywen/global-mouse-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.