# node-iohook-cp **Repository Path**: tooyoo/node-iohook-cp ## Basic Information - **Project Name**: node-iohook-cp - **Description**: node监听系统键盘和鼠标事件,要安装c++编译器和python,其实就是要安装配置node-gyp - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-14 - **Last Updated**: 2021-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # node-iohook Binding of libuiohook for nodejs # About This package help nodejs developer to catch events on mouse and keyboard and register callbacks on every events. #requirements - Windows: VS2015 - MAC: clang - Linux: GCC #install `` npm install node-iohook `` #example ``` const hook = require('node-iohook') hook.on('keydown', function(msg){ console.log(msg); }); hook.start(); ``` #misc ``node-iohook`` work with last ``nodejs`` LTS as well as ``electron``