@putout/cli-keypress 
putout
keypress handler.
Install
npm i @putout/cli-keypress
Examples
import {keypress} from 'keypress';
const {isStop} = keypress();
// do some stuff until ctrl+c pressed
async function again() {
if (isStop())
return;
await again();
}
Env Variables
KEYPRESS=1
can be used to force enable keypress
.
License
MIT