@putout/keypress
v1.2.2
Published
putout plugin helps whith .gitignore
Maintainers
Readme
@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
