hcfyapp / iohook

Node.js global keyboard and mouse listener.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a fork from wilix-team/iohook. Since it no longer provides prebuild binary for new version Node.js and Electron, and not support Apple m1 (a.k.a arm64, aarch64), so I forked the project, provided prebuild binary files (based on iohook v0.9.3) and posted it to npm.

Just install it and it should work for you:

npm install @hcfy/iohook

Use arm64 in package.json runtime version to download arm64 prebuild.

https://wilix-team.github.io/iohook/usage.html#electron

For example, for Electron v18 and Node.js v16:

{
  "iohook": {
    "targets": [
      "node-93",
      "electron-103"
    ],
    "platforms": [
      "win32",
      "darwin",
      "linux"
    ],
    "arches": [
      "x64",
      "ia32",
      "arm64"
    ]
  }
}

About

Node.js global keyboard and mouse listener.

License:MIT License


Languages

Language:C 80.2%Language:JavaScript 6.0%Language:M4 5.2%Language:C++ 4.0%Language:Roff 1.5%Language:CMake 1.5%Language:Python 0.8%Language:Makefile 0.7%Language:Shell 0.0%