@putout/cli-keypress
v3.0.0
Published
handle keypress
Maintainers
Readme
@putout/cli-keypress 
putout keypress handler.
Install
npm i @putout/cli-keypressExamples
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
