/node-keypress

A package for receiving input when a user presses a key on the keyboard.

Primary LanguageJavaScript

node-keypress

When a user press a key of the keyboard, an event will be sended to you.

Installation

npm i node-keypress

Example

const { NodeKeyboard } = require("node-keypress")
const keyboard = new NodeKeyboard()

keyboard.onKeypress(function(key) {
    console.log(key)
})