iohook
iohook copied to clipboard
"Segmentation fault" error while running on Windows 10
trafficstars
Environment
- IOHook Version: 0.9.3
- Environment: NodeJS v14.15.5
- Operating System: Windows 10 64bit
Expected Behavior
I'm trying to console.log the 'keypress' event using the code below:
const ioHook = require('iohook');
ioHook.on('keypress', event => console.log(event));
ioHook.start();
Current Behavior
Here is the output from running node app.js:
refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 2 layouts.
refresh_locale_list [493]: Received 2 locales.
load_input_helper [866]: refresh_locale_list() found 2 locale(s).
Segmentation fault
Additional Information
- The 'require' statement instantly throws the error.
- NPM found 1 high severity vulnerability and here is the full log from
npm audit:
=== npm audit security report ===
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
High Regular Expression Denial of Service
Package trim-newlines
Patched in >=3.0.1 <4.0.0 || >=4.0.1
Dependency of iohook
Path iohook > nugget > pretty-bytes > meow > trim-newlines
More info https://npmjs.com/advisories/1753
found 1 high severity vulnerability in 146 scanned packages
1 vulnerability requires manual review. See the full report for details.
Looks like a duplicate of #319.