MIT License

项目介绍

wilix-team/iohook 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 MIT License 许可证,目前获得 1.3k 个 Star、263 次 Fork。

仓库全名
wilix-team/iohook
开源许可证
MIT License
Star 数
1.3k
Fork 数
263
未关闭 Issue
94

README 摘要

iohook 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

iohook 用什么语言开发?

主要使用 C 编写,采用 MIT License 许可证,目前有 1.3k 个 Star。

iohook 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 iohook 的源码?

可以直接克隆仓库:git clone https://github.com/wilix-team/iohook.git,默认分支为 master;安装与运行步骤见仓库 README。

iohook 最近还在维护吗?

仓库最近一次更新为 2025年2月21日,当前有 94 个未关闭 Issue;Star 数为 1.3k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Node.js global keyboard and mouse listener.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1807
价值分
832
活跃状态
活跃

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 can 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 !

评论

暂无评论