{"id":15645892,"url":"https://github.com/tomzx/gkm","last_synced_at":"2025-04-15T11:07:56.157Z","repository":{"id":12802608,"uuid":"15477334","full_name":"tomzx/gkm","owner":"tomzx","description":"⚠ Unsupported/Unmaintained ⚠️️ Global Keyboard and Mouse listener for node.js.","archived":false,"fork":false,"pushed_at":"2022-05-12T10:50:17.000Z","size":339,"stargazers_count":54,"open_issues_count":13,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T19:21:16.080Z","etag":null,"topics":["java","javascript","keyboard-listener","mouse-listener"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tomzx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-27T16:18:31.000Z","updated_at":"2024-11-26T04:47:08.000Z","dependencies_parsed_at":"2022-09-15T17:51:34.527Z","dependency_job_id":null,"html_url":"https://github.com/tomzx/gkm","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fgkm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fgkm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fgkm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomzx%2Fgkm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomzx","download_url":"https://codeload.github.com/tomzx/gkm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557828,"owners_count":21124167,"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":["java","javascript","keyboard-listener","mouse-listener"],"created_at":"2024-10-03T12:10:30.378Z","updated_at":"2025-04-15T11:07:56.123Z","avatar_url":"https://github.com/tomzx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GKM\nAn event based, Global Keyboard and Mouse listener.\n\nTested on Windows 7, but should work on Linux and Mac OS X as well (untested).\n\n[![NPM](https://nodei.co/npm-dl/gkm.png)](https://nodei.co/npm/gkm/)\n\n## Why?\nNode didn't have any global keyboard and mouse listener available at the time.\n\n## Requirements\nGKM depends on [JNativeHook](https://github.com/kwhat/jnativehook), which runs on Java. Thus you will need to have a JVM available and more importantly, java availble on your PATH.\n\nIn the `lib` folder, you will find `gkm.jar`, which source you can find at https://github.com/tomzx/gkm-java.\nYou will also find `JNativeHook.jar`, which source you can find at https://github.com/kwhat/jnativehook.\n\n## Getting started\nInstall gkm via node.js package manager:\n\n    npm install gkm --save\n\nThen require the package in your code:\n\n```javascript\nvar gkm = require('gkm');\n\n// Listen to all key events (pressed, released, typed)\ngkm.events.on('key.*', function(data) {\n    console.log(this.event + ' ' + data);\n});\n\n// Listen to all mouse events (click, pressed, released, moved, dragged)\ngkm.events.on('mouse.*', function(data) {\n\tconsole.log(this.event + ' ' + data);\n});\n```\n\n## License\nThe code is licensed under the MIT license (http://opensource.org/licenses/MIT). See license.txt.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomzx%2Fgkm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomzx%2Fgkm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomzx%2Fgkm/lists"}