Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (28 loc) · 865 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 865 Bytes

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"
    ]
  }
}