Get notified when user is typing in Node/Electron! (Works on macOS — Needs Accessability permission)
$ npm install is-typings
Requires macOS 10.11 or later.
const isTypingListener = require("is-typings");
isTypingListener(event => {
if (event === "KEYDOWN") {
console.log("a key was pressed");
}
});
Inspired by the one and only Sindre Sorhus. Support him on his Patreon: https://www.patreon.com/sindresorhus
- is-camera-on-cli - CLI for this module
MIT © Mohammad Rajabifard