{"id":20000185,"url":"https://github.com/andstor/mouse-controller","last_synced_at":"2026-05-09T02:36:01.131Z","repository":{"id":36798047,"uuid":"228500891","full_name":"andstor/mouse-controller","owner":"andstor","description":":mouse: Node.js C++ Addon for emulating mouse behavior","archived":false,"fork":false,"pushed_at":"2022-01-22T10:04:24.000Z","size":82,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T10:38:02.349Z","etag":null,"topics":["cpp","macos","mouse","node-addon","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mouse-controller","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andstor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-17T00:36:13.000Z","updated_at":"2020-01-03T14:27:03.000Z","dependencies_parsed_at":"2022-09-02T06:35:56.266Z","dependency_job_id":null,"html_url":"https://github.com/andstor/mouse-controller","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andstor/mouse-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Fmouse-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Fmouse-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Fmouse-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Fmouse-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andstor","download_url":"https://codeload.github.com/andstor/mouse-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andstor%2Fmouse-controller/sbom","scorecard":{"id":194881,"data":{"date":"2025-08-11","repo":{"name":"github.com/andstor/mouse-controller","commit":"dac35c456dfc4374a00b35c6659425cb8d9ea1d4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/andstor/mouse-controller/releases/22476622","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/andstor/mouse-controller/releases/22476622"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T21:38:11.682Z","repository_id":36798047,"created_at":"2025-08-16T21:38:11.682Z","updated_at":"2025-08-16T21:38:11.682Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32805072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","macos","mouse","node-addon","nodejs"],"created_at":"2024-11-13T05:14:00.555Z","updated_at":"2026-05-09T02:36:01.091Z","avatar_url":"https://github.com/andstor.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mouse-controller\n\n\u003e Node.js C++ Addon for emulating mouse behavior\n\n[![Build Status](https://travis-ci.org/andstor/mouse-controller.svg?branch=master)](https://travis-ci.org/andstor/mouse-controller)\n[![Coverage Status](https://coveralls.io/repos/github/andstor/mouse-controller/badge.svg?branch=master)](https://coveralls.io/github/andstor/mouse-controller?branch=master)\n[![npm version](http://img.shields.io/npm/v/mouse-controller.svg?style=flat)](https://npmjs.org/package/mouse-controller \"View this project on npm\")\n\n## Table of Contents\n  * [Supported Plattforms](#supported-plattforms)\n  * [Installation](#installation)\n  * [Usage](#usage)\n  * [Constants](#constants)\n  * [Methods](#methods)\n  * [License](#license)\n\n## Supported Plattforms\n\nCurrently supported plattforms are:\n\n- **MacOS**\n\n## Installation\n\n```sh\n$ npm install --save mouse-controller\n```\n\n[Precompiled binaries](https://github.com/andstor/mouse-controller/releases/latest) for popular 64-bit platforms are provided. When installing `mouse-controller`, [`node-pre-gyp`](https://github.com/mapbox/node-pre-gyp) will check if a compatible binary exists and fallback to a compile step if it doesn't. In that case you'll need a [valid `node-gyp` installation](https://github.com/nodejs/node-gyp#installation).\n\nIf you don't want to use the prebuilt binary for the platform you are installing on, specify the `--build-from-source` flag when you install. One of:\n\n```\nnpm install --build-from-source\nnpm install mouse-controller --build-from-source\n```\n\n\n## Usage\n\n### Syntax\n```js\nnew MouseController()\n```\n\n### Example\n```js\nconst MouseController = require('mouse-controller');\nconst mc = new MouseController();\n\nconsole.log(mc.getPosition());\n//=\u003e { x: 143.9375, y: 129.0625 }\n\n// Move the mouse to the coordinates (500, 500).\nmc.move(500, 500);\n\n// Right click at the current mouse position.\nmc.click(mc.BUTTON.RIGHT, mc.getPosition());\n```\n\n## Constants\n\n### BUTTON\nConstant for specifying the mouse button type.\n\n| Constant | Value | Button             |\n| :------- | :---: | :----------------- |\n| `LEFT`   |  `0`  | Left mouse button  |\n| `RIGHT`  |  `1`  | Right mouse button |\n\n## Methods\n\n### move(x, y)\n- **x**:\n  - Type: `Number`\n  - x-coordinate for the new mouse position.\n\n- **y**:\n  - Type: `Number`\n  - y-coordinate for the new mouse position.\n\nMoves the mouse to the point (`x`, `y`).\n\n### click(BUTTON, point)\n- **BUTTON**:\n  - Type: [`BUTTON`](#button)\n  - Which mouse button to click. The [`BUTTON`](#button) type is defined as multiple constants.\n\n- **point**:\n  - Type: `Object`\n  - Which mouse button to click.\n\nClicks with the `BUTTON` at the `point` provided. To click in the corrent position of the mouse, use the method [getPosition()](#getPosition).\n\n### doubleClick(BUTTON, point)\n- **BUTTON**:\n  - Type: [`BUTTON`](#button)\n  - Which mouse button to click. The [`BUTTON`](#button) type is defined as multiple constants on the BUTTON object.\n\n- **point**:\n  - Type: `Object`\n  - Which mouse button to click.\n\nDouble clicks with the `BUTTON` at the `point` provided. To click in the corrent position of the mouse, use the method [getPosition()](#getPosition).\n\n### getPosition()\n- (return value):\n  - Type: `Object`\n  - Returns the current mouse position.\n\nGets the current mouse position on the form `{ x: 143.9375, y: 129.0625 }`.\n\n### startDrag(point)\n- **point**:\n  - Type: `Object`\n  - Object with `x` and `y` coordinates of the vanted mouse position to start the mouse drag from.\n\nStart to drag by pressing down on the left mouse button at the point (`x`, `y`). To do consecutive movement while dragging, use the [drag(point)](#dragpoint) method.\n\n### drag(point)\n- **point**:\n  - Type: `Object`\n  - Object with `x` and `y` coordinates of the vanted mouse position to end the mouse drag on.\n\nTo move the mouse that is activly dragging,  the point (`x`, `y`).\n\n### endDrag(point)\n- **point**:\n  - Type: `Object`\n  - Object with `x` and `y` coordinates of the vanted mouse position to end the mouse drag on.\n\nEnd a mouse drag by releasing the left mouse button at the point (`x`, `y`).\n\n## License\n\nmouse-controller is licensed under the [MIT License](https://github.com/andstor/mouse-controller/blob/master/LICENSE).  \nCopyright © [André Storhaug](https://github.com/andstor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandstor%2Fmouse-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandstor%2Fmouse-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandstor%2Fmouse-controller/lists"}