Skip to content

aabuhijleh/keylogger.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keylogger.js

A simple Node.js keylogger for Windows and macOS

Prerequisites

Make sure you have node-gyp and its dependencies installed

Install

$ npm install keylogger.js

Usage

import keylogger from "keylogger.js";
// or
// const keylogger = require("keylogger.js");

keylogger.start((key, isKeyUp, keyCode) => {
  console.log("keyboard event", key, isKeyUp, keyCode);
});

Notes

The key value returned with the callback function passed to keylogger.start will match the browser's KeyboardEvent.key value as listed in this table