{"id":13548653,"url":"https://github.com/irontec/node-mouse","last_synced_at":"2025-06-15T02:09:21.126Z","repository":{"id":66472556,"uuid":"43556065","full_name":"irontec/node-mouse","owner":"irontec","description":"handle mouse events from /dev/input/[mouse[0-9]+|mice] for nodejs","archived":false,"fork":false,"pushed_at":"2015-10-02T15:09:34.000Z","size":128,"stargazers_count":20,"open_issues_count":1,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-13T10:58:39.515Z","etag":null,"topics":["mouse-events","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irontec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-02T14:04:09.000Z","updated_at":"2025-02-06T07:17:53.000Z","dependencies_parsed_at":"2023-03-10T23:58:25.419Z","dependency_job_id":null,"html_url":"https://github.com/irontec/node-mouse","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"05475133d67665c5fd7938a1d8b85f085565cd14"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/irontec/node-mouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-mouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-mouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-mouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-mouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irontec","download_url":"https://codeload.github.com/irontec/node-mouse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fnode-mouse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259642699,"owners_count":22889030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mouse-events","nodejs"],"created_at":"2024-08-01T12:01:12.905Z","updated_at":"2025-06-15T02:09:21.112Z","avatar_url":"https://github.com/irontec.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# node-mouse\n\nA quick adaptation mouse event handler for nodejs.\n\nMost of the work comes from:\n\n* [Read Linux mouse(s) in node.js](https://gist.github.com/bfncs/2020943) (Marc Loehe)\n* [Node-keyboard](https://github.com/Bornholm/node-keyboard)\n* [Read a Linux Joystick](https://github.com/nodebits/linux-joystick) (Tim Caswell)\n\n\n\n# Install\n```shell\n    npm install node-mouse --save\n```\n\n# Usage\n```javascript\nvar Mouse = require(\"./mouse.js\");\n\nvar m = new Mouse();\n\nm.on(\"mousedown\",function(event) {\n    console.log(event);\n});\n\nm.on(\"mouseup\",function(event) {\n    console.log(event);\n});\n\n// same as mouseup, but fired after\nm.on(\"click\",function(event) {\n    console.log(event);\n});\n\n\nm.on(\"mousemove\", function(event) {\n    console.log(event);\n});\n```\n\n\n# Licence\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firontec%2Fnode-mouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firontec%2Fnode-mouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firontec%2Fnode-mouse/lists"}