From d28d8333ebe71e2937660b13d9afb1d516cf14f0 Mon Sep 17 00:00:00 2001 From: wlodekm Date: Fri, 15 Nov 2024 09:46:47 +0200 Subject: v1.0.2 --- keys.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 keys.js (limited to 'keys.js') 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 -- cgit 1.4.1-2-gfad0