{"name":"@putout/cli-keypress","version":"4.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"handle keypress","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-keypress#readme","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"ci-info":"^4.0.0","fullstore":"^4.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^12.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^12.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/cli-keypress@4.0.0","gitHead":"0db1a7a420cc1dda97cafe65c2eacf865fcca071","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-76zmDjUycBt/CHkOZADP2KMdXWud3n8c1Wb4By/LWpbpykM8G9+pC7UeWAMo9CFDp/s3OXYee2UVtACf1+oZsg==","shasum":"6fc7e021a5cd591a0c71b1830823ce3e11fe6400","tarball":"http://registry-npm.ywwl.com/@putout/cli-keypress/download/@putout/cli-keypress-4.0.0.tgz","fileCount":4,"unpackedSize":4100,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCX5JeRUIMYVhjmFM0eXFkFxwITdn5nxyfLNkG0ZmaTggIhAJBWQzb/Uq6+ZqQYnOocCiFFom9JuhWfwX/khjYZWyTG"}],"size":2054,"noattachment":false,"key":"/@putout/cli-keypress/-/@putout/cli-keypress-4.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli-keypress_4.0.0_1768128332308_0.8283268713900558"},"_hasShrinkwrap":false,"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":1768128332432,"_cnpm_publish_time":1768128332432,"dist-tags":{"latest":"4.0.0"}}