Node.js global keyboard and mouse hook
npm install @mechakeys/iohook
sh
Install MechaKeys iohook
npm install --save @mechakeys/iohook
`
`sh
Install prebuilt binaries for your platform, architecture, and ABIs.
cd ./node_modules/@mechakeys/iohook
npm i
node install.js
`
By default, prebuilds will be downloaded for your own platform and architecture, but you can download specific ones through your package.json:
`json
"iohook": {
"targets": [
"node-108",
"electron-116"
],
"platforms": [
"win32",
"darwin",
"linux"
],
"arches": [
"x64",
]
}
``