{"_id":"@putout/cli-keypress","_rev":"5-42c69c7c477684f3a86fc5335b4191d2","name":"@putout/cli-keypress","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"@putout/cli-keypress","version":"1.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@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"926a30e5a64c5e97add15f6a47e31b4ae234de24","tarball":"https://registry.npmjs.org/@putout/cli-keypress/-/cli-keypress-1.0.0.tgz","fileCount":4,"integrity":"sha512-w+lRVGZodRM4K214R4jvyOsmCUGA3OnaYDOJ2rpXj6a+O6n91zLlkb7JYsw6I0QCNmXjpNLJSoLgzGWTue6YIg==","signatures":[{"sig":"MEUCIEFIbw9KwxKrfRaAAHfF8J+UgBw5Qb01nY6pYkE2qCZ2AiEAxYgL+txuJrrm3RBoh2et0nxYejw0Ac0ksTqKDxL4DnU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgM6cXCRA9TVsSAnZWagAA/BAP/iRwyGX7TE0ODST5FWb+\nhzoa06ZyRHtTTgBdvghnb4/mGyxm/B+YCSifPuy5QDol5q1byQ9YGS+btCtp\npF1H/ZPvaKBM/9JoPLDbh1zvTURaeTnDQQ8njMN1FGRgmbNz1LzuF/t3ECYs\nvKz7agb1JZShbNNZGXplMjpdJnpPNK4qWteX6IzIOSy3QyHAVTHUNCRNKK0J\n1KfPYMYg95SgBH/2eBraWSBALSWOeyPn3HXLOp0ovcmEqbbTP49/J9fWhI3g\nWhXqUUk20sMWnNgnYJN7GhlmgQAtUSyQ1RW8yq7+uk4RebY7g6oqknYJWMwc\n0bljqWKM5Cg+cLWCGRsupdAbWHYnakGxfnNoIj08QMUfpdeA7tR7zuhPFJNP\n1yHBVhQ7UQ7GoNEatS/Q9sCfISf3OzmpwwI11l1BbEzTVDMLevd+w5RNM7WS\ntUtZ2y1aeI2bFR5QIlMTtliW6Ao3W87TZo9os6NRo5g417CI7Ddc3VPlC59B\nFIqjRjrf2Nf/+ETulFiZs92MHpOzKWFZ8ejLts+lUVj/yX8AvZt8F/+gGYVo\nrgE1zK/JYAjgLIbAh8ZAhHKo59YriJ9Y7kZ09WWys111c8WV+UR+zH2mR2jF\nIs7E5lzG1Wkc7EV2YyoAeRIq99QlN4i1JAek2hJBqODj2SxdnBCv6WpoPAhE\nmBVZ\r\n=QMjU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/keypress.js","engines":{"node":">=14"},"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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"6.14.7","description":"handle keypress","directories":{},"_nodeVersion":"15.9.0","dependencies":{"ci-info":"^3.1.1","fullstore":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^3.8.5","eslint":"^7.6.0","madrun":"^8.0.1","putout":"*","nodemon":"^2.0.1","supertape":"^4.3.1","@putout/test":"^3.0.0","mock-require":"^3.0.3","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-keypress_1.0.0_1613997846651_0.42966062392999405","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/cli-keypress","version":"2.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@2.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":"1e2d24950a5a48e7a366a04c0e69b6b462488c56","tarball":"https://registry.npmjs.org/@putout/cli-keypress/-/cli-keypress-2.0.0.tgz","fileCount":4,"integrity":"sha512-EXJv2HaXM+5scjoxE6Tf+o4+pxwL1tYJZJBDMygrF7cocjirGcU05GgNr9WHOaUPaVOpVjVU98ugYD7XJLmMkw==","signatures":[{"sig":"MEQCIF+KZfWYxG9g9gDTRIWwET/2uEqcssRJ8mmy7Sx0E6p5AiAF/HA44I05zXnwbbIoZjFYpwubZW1ZGqJdG7qLq+IzDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4030},"main":"lib/keypress.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"d24c323f7c7e5347da6ac3ef1e04388b06ead410","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.6.6","description":"handle keypress","directories":{},"_nodeVersion":"18.16.0","dependencies":{"ci-info":"^4.0.0","fullstore":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^8.0.0","mock-require":"^3.0.3","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-keypress_2.0.0_1698658428648_0.9512825574188299","host":"s3://npm-registry-packages"}},"3.0.0":{"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":"https://registry.npmjs.org/@putout/cli-keypress/-/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},"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"}},"4.0.0":{"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":"https://registry.npmjs.org/@putout/cli-keypress/-/cli-keypress-4.0.0.tgz","fileCount":4,"unpackedSize":4100,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCX5JeRUIMYVhjmFM0eXFkFxwITdn5nxyfLNkG0ZmaTggIhAJBWQzb/Uq6+ZqQYnOocCiFFom9JuhWfwX/khjYZWyTG"}]},"_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}},"time":{"created":"2021-02-22T12:44:06.483Z","modified":"2026-01-11T10:45:32.668Z","1.0.0":"2021-02-22T12:44:06.752Z","2.0.0":"2023-10-30T09:33:48.799Z","3.0.0":"2025-04-01T13:45:57.093Z","4.0.0":"2026-01-11T10:45:32.432Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-keypress#readme","keywords":["putout","putout-plugin","plugin","gitignore"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"handle keypress","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}