io-listener
v0.1.0
Published
A simple library to globally listen to keyboard events
Readme
io-listener
io-listener is a node.js library that provides a simple way to listen for global keyboard events.
Platform limitations
The library is a wrapper around the excellent pynput Python library. A Python based executable is bundled with the library. 3 platforms are supported:
- Windows (win32)
- Linux (linux)
- MacOS (darwin)
The library is not supported on other platforms.
Installation
npm install io-listenerUsage
// ./examples/main.tsDevelopment
Prepare the repository:
./scripts/dev-init.shBuild the Python executable:
./scripts/local-build-python.shBuild the library code:
npm run build