1.2.2 • Published 5 years ago
@putout/keypress v1.2.2
@putout/keypress

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