{"name":"@putout/cli-keypress","version":"3.0.0","keywords":["putout","putout-plugin","plugin","gitignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-keypress@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-keypress#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"c222641f2d05d690e3c3a57764354f1757bf06c6","tarball":"http://registry-npm.ywwl.com/@putout/cli-keypress/download/@putout/cli-keypress-3.0.0.tgz","fileCount":4,"integrity":"sha512-RwODGTbcWNaulEPvVPdxH/vnddf5dE627G3s8gyou3kexa6zQerQHvbKFX0wywNdA3HD2O/9STPv/r5mjXFUgw==","signatures":[{"sig":"MEUCIGotFla+NFqKMTP0MiMbNwTx2it8KQV7TOvgNSW6vTT9AiEA6Ut3XLxHyXcDX94J+ojwAjeiZzZH+u0zs6mZ8z9QjhE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4118,"size":2058,"noattachment":false,"key":"/@putout/cli-keypress/-/@putout/cli-keypress-3.0.0.tgz"},"main":"lib/keypress.js","type":"module","engines":{"node":">=20"},"gitHead":"dabc451a2c17f005eb76a6bc57c66034691bbfa5","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.1.0","description":"handle keypress","directories":{},"_nodeVersion":"22.14.0","dependencies":{"ci-info":"^4.0.0","fullstore":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^11.0.3","mock-require":"^3.0.3","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-keypress_3.0.0_1743515156868_0.4891322013131414","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/cli-keypress [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-keypress.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-keypress \"npm\"\n\n`putout` keypress handler.\n\n## Install\n\n```\nnpm i @putout/cli-keypress\n```\n\n## Examples\n\n```js\nimport {keypress} from 'keypress';\n\nconst {isStop} = keypress();\n\n// do some stuff until ctrl+c pressed\nasync function again() {\n    if (isStop())\n        return;\n    \n    await again();\n}\n```\n\n## Env Variables\n\n`KEYPRESS=1` can be used to force enable `keypress`.\n\n## License\n\nMIT\n","publish_time":1743515157093,"_cnpm_publish_time":1743515157093,"dist-tags":{"latest":"4.0.0"}}