0.1.4 • Published 6 years ago

hookline v0.1.4

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

hookline

About

Node.js global keyboard event listener based on iohook to read a line.

Installation

# TODO
npm install hookline --save 

Example

'use strict';
const hookLine = require('hookline');
hookLine.on('data', data => console.log(data));

hookLine.start();

Manual Build

If you want to manually compile it, follow the instructions below.

Ubuntu 16

  • sudo apt install libx11-dev libxtst-dev libxt-dev libx11-xcb-dev libxkbcommon-dev libxkbcommon-x11-dev
  • npm run build

macOS

  • brew install cmake automake libtool pkg-config
  • npm run build

Windows

  • Install: msys2 with autotools, pkg-config, libtool, gcc, clang, glib, C++ Build Tools, cmake
  • npm run build