summary refs log tree commit diff
path: root/keys.js
diff options
context:
space:
mode:
authorwlodekm <[email protected]>2024-11-15 09:46:47 +0200
committerwlodekm <[email protected]>2024-11-15 09:46:47 +0200
commitd28d8333ebe71e2937660b13d9afb1d516cf14f0 (patch)
tree6c941712ec80b785a940b37aec52b2cea7861835 /keys.js
parentd51dbb974d83125f4bfb017188de6a013b7f746c (diff)
v1.0.2
Diffstat (limited to 'keys.js')
-rw-r--r--keys.js12
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