Détail du package

iohook

wilix-team1.9kMIT0.9.3

Node.js global keyboard and mouse hook

hook, electron, nw.js, listener

readme

iohook

NPM version Release date GitHub Super-Linter CI code style: prettier Gitter chat Issues

About

Node.js global native keyboard and mouse listener.

This module can handle keyboard and mouse events via native hooks inside and outside your JavaScript/TypeScript application.

Found a bug? Have an idea? Feel free to post an issue or submit a PR.

Check out the documentation.

Platform support

  • Versions >= 0.6.0 support only officially supported platforms versions.
  • Versions 0.5.X are the last to support Electron < 4.0.0
  • Versions 0.4.X are the last to support for Node < 8.0 and Electron < 2.0.0

Installation

iohook provides prebuilt version for a bunch of OSes and platforms.

Linux (including WSL)

# On Linux (including WSL) platform, you will need libxkbcommon-x11 installed
sudo apt-get install -y libxkbcommon-x11-0

All platforms

npm install iohook --save # or yarn add iohook

FAQ

Q. Does this module require Java ?

A. No, this module doesn't require Java (like jnativehook) or any other runtimes.

Q. Is iohook compatible with Node/Electron version X.Y.Z ?

A. We try to match the currently supported version of both Node and Electron.

Apps

Are you using iohook in your project ? Please tell us in a PR so we an add it to the list !

Contributors

Thanks to kwhat for the libuiohook project and ayoubserti for the first iohook prototype.

  • vespakoen (prebuild system implementation)
  • matthewshirley (Windows prebuild fix)
  • djiit (project & community help)
  • ezain (add feature enable/disable mouse click propagation)
  • anoadragon453 (electron 4+ support)
  • ykhwong (node-gyp usage, electron 9+ support)
  • All the other contributors. Feel free to extend this list !

changelog

CHANGELOG

v0.7.2

  • fix: Fix macOS and linux prebuilt.

v0.7.1

  • fix: add missing dependency.

v0.7.0

  • feat: Add support for Electron 9+ and Node 12+.
  • fix: drop cmake-js for node-gyp.

v0.6.6

  • feat: Add support for Electron 9.

v0.6.5

  • feat: Add support for Electron 8.

v0.6.4

  • feat: Add support for Node 13.
  • chore: Fix npm vulnerabilities with audit.

v0.6.3

  • fix: depreacated use of objc_msgSend.
  • fix: Update start() types.
  • feat: improve x11 use.

v0.6.2

  • feat: Add support for Electron 7.

v0.6.1

  • fix: Update repo name.

v0.6.0

  • feat: Add support for Electron 6.
  • deprecation: Drop support for electron < 4.X.X .

v0.5.1

  • chore: Use SSL options when dealing with prebuilts.

v0.5.0

  • deprecation: Drop support for node < 8, electron < 1.8

v0.4.6

  • fix: fix Win32 builds

v0.4.5

  • feat: add support for Electron 5, Node 12

v0.4.4

  • hotfix: fix corrupted 0.4.3 release.

v0.4.3

  • feat: ability to build for a single platform/target.

v0.4.2

  • fix: use cmake-js fork to support Electron 4+ on Windows.

v0.4.1

  • fix: use VS C++ for Electron >= v4.

v0.4.0

  • feat: add support for Electron 4.

v0.3.1

  • fix: allow use of iohook.registerShortcut without a 3rd releaseCallback argument.

v0.3.0

  • feat: drop segfault-handler dependency.

v0.2.6

  • feat: add support for Node 10

v0.2.5

  • feat: git@github.com:wilix-team/iohook.git
  • fix: fix documentation link.
  • chore : repo transfered to wilix-team org.

v0.2.4

  • feat: ability to listen for when a keyboard shortcut has been released
  • feat: ability to unregister a shortcut via the shortcut's keys

v0.2.3

  • feat: Bump libuiohook version
  • chore: many travis build improvements

v0.2.2

  • feat: Add support for Node 10 (for real this time...)

v0.2.1

  • feat: Add support for Electron 2.0
  • feat: Drop support for node < 6, electron < 1.2

v0.2.0

  • feat: Add modifier keys support
  • feat: Add online documentation
  • feat: Add tests (reverted for now)

v0.1.16

  • feat: Add support for Electron 2.0
  • feat: Add support for NodeJS 10.x
  • deprecation: Drop support for Linux ia32 (like NodeJS itself)

v0.1.15

  • feat: Bump libiohook to version 1.1