Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 706 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 706 Bytes

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