diff options
Diffstat (limited to 'keys.js')
-rw-r--r-- | keys.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/keys.js b/keys.js deleted file mode 100644 index 3884908..0000000 --- a/keys.js +++ /dev/null @@ -1,12 +0,0 @@ -// util for figuring out key stuff -// run this, press a key, and it'll give you the json :+1: -import readline from 'node:readline'; - -readline.emitKeypressEvents(process.stdin); - -if (process.stdin.isTTY) process.stdin.setRawMode(true); - -process.stdin.on('keypress', (chunk, key) => { - console.log(JSON.stringify(key)) - process.exit(); -}); \ No newline at end of file |