ayoubserti / node-iohook

Binding of libuiohook for nodejs
22 stars 11 forks source link
binding io keyboard-events mouse-events nodejs

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

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