@@ -26,3 +26,3 @@ import readline from 'readline'; | ||
return () => { | ||
process.stdin.on('keypress', listener); | ||
process.stdin.off('keypress', listener); | ||
@@ -29,0 +29,0 @@ if (process.stdin.isTTY) { |
{ | ||
"name": "esc-exit", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Exit the process when the `esc` key is pressed", | ||
@@ -15,2 +15,3 @@ "license": "MIT", | ||
"exports": "./index.js", | ||
"sideEffects": false, | ||
"engines": { | ||
@@ -17,0 +18,0 @@ "node": ">=12" |
@@ -9,5 +9,5 @@ # esc-exit | ||
```sh | ||
npm install esc-exit | ||
``` | ||
$ npm install esc-exit | ||
``` | ||
@@ -14,0 +14,0 @@ ## Usage |
3014
0.8%