{"_id":"@putout/keypress","_rev":"4156548","name":"@putout/keypress","description":"putout plugin helps whith .gitignore","dist-tags":{"latest":"1.2.2"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:28:26.000Z","created":"2020-12-29T16:56:12.210Z","1.2.2":"2021-02-22T12:42:30.367Z","1.2.1":"2021-02-18T09:57:03.287Z","1.2.0":"2021-01-03T16:22:49.377Z","1.1.0":"2021-01-03T09:49:03.630Z","1.0.0":"2020-12-29T16:56:12.210Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"1.2.2":{"name":"@putout/keypress","version":"1.2.2","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps whith .gitignore","homepage":"http://github.com/coderaiser/putout","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":"^3.1.1","fullstore":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^3.8.5","madrun":"^8.0.1","mock-require":"^3.0.3","nodemon":"^2.0.1","putout":"*","supertape":"^4.3.1"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/keypress@1.2.2","_nodeVersion":"15.9.0","_npmVersion":"6.14.7","dist":{"shasum":"f0889341bfde96dfbe2ba1578dae16ac78ca8f3f","size":2126,"noattachment":false,"key":"/@putout/keypress/-/@putout/keypress-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/keypress/download/@putout/keypress-1.2.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keypress_1.2.2_1613997750203_0.64357992093967"},"_hasShrinkwrap":false,"publish_time":1613997750367,"_cnpm_publish_time":1613997750367,"_cnpmcore_publish_time":"2021-12-17T00:58:23.419Z"},"1.2.1":{"name":"@putout/keypress","version":"1.2.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps whith .gitignore","homepage":"http://github.com/coderaiser/putout","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":"^3.1.1","fullstore":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","lerna":"^3.8.5","madrun":"^8.0.1","mock-require":"^3.0.3","nodemon":"^2.0.1","putout":"*","supertape":"^4.3.1"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/keypress@1.2.1","_nodeVersion":"15.8.0","_npmVersion":"7.5.1","dist":{"shasum":"597edfdfd913b7979cd3cf2bc39b50db75350788","size":2092,"noattachment":false,"key":"/@putout/keypress/-/@putout/keypress-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/keypress/download/@putout/keypress-1.2.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keypress_1.2.1_1613642223168_0.9316879360775205"},"_hasShrinkwrap":false,"publish_time":1613642223287,"_cnpm_publish_time":1613642223287,"_cnpmcore_publish_time":"2021-12-17T00:58:23.842Z"},"1.2.0":{"name":"@putout/keypress","version":"1.2.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps whith .gitignore","homepage":"http://github.com/coderaiser/putout","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":"^2.0.0","fullstore":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","coveralls":"^3.0.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.0.0","lerna":"^3.8.5","madrun":"^8.0.1","mock-require":"^3.0.3","nodemon":"^2.0.1","nyc":"^15.0.1","putout":"^13.0.0","supertape":"^4.3.1"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/keypress@1.2.0","_nodeVersion":"15.5.0","_npmVersion":"6.14.7","dist":{"shasum":"2ea3555abd2bfbd5da1cd558c4983d06cfe02067","size":2098,"noattachment":false,"key":"/@putout/keypress/-/@putout/keypress-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/keypress/download/@putout/keypress-1.2.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","tmp":"tmp/keypress_1.2.0_1609690969226_0.13757692581987313"},"_hasShrinkwrap":false,"publish_time":1609690969377,"_cnpm_publish_time":1609690969377,"_cnpmcore_publish_time":"2021-12-17T00:58:24.032Z"},"1.1.0":{"name":"@putout/keypress","version":"1.1.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps whith .gitignore","homepage":"http://github.com/coderaiser/putout","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":"^2.0.0","fullstore":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","coveralls":"^3.0.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.0.0","lerna":"^3.8.5","madrun":"^8.0.1","mock-require":"^3.0.3","nodemon":"^2.0.1","nyc":"^15.0.1","putout":"^13.0.0","supertape":"^4.3.1"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/keypress@1.1.0","_nodeVersion":"15.5.0","_npmVersion":"6.14.7","dist":{"shasum":"61ad532cafe4fef343a850be58f5933fa04efc43","size":2039,"noattachment":false,"key":"/@putout/keypress/-/@putout/keypress-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/keypress/download/@putout/keypress-1.1.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","tmp":"tmp/keypress_1.1.0_1609667343494_0.1848022681624264"},"_hasShrinkwrap":false,"publish_time":1609667343630,"_cnpm_publish_time":1609667343630,"_cnpmcore_publish_time":"2021-12-17T00:58:24.244Z"},"1.0.0":{"name":"@putout/keypress","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin helps whith .gitignore","homepage":"http://github.com/coderaiser/putout","main":"lib/keypress.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":"^2.0.0","fullstore":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"@putout/test":"^3.0.0","coveralls":"^3.0.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^6.0.0","lerna":"^3.8.5","madrun":"^8.0.1","nodemon":"^2.0.1","nyc":"^15.0.1","putout":"^13.0.0"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/keypress@1.0.0","_nodeVersion":"15.5.0","_npmVersion":"6.14.7","dist":{"shasum":"52922718ec5a32958239c32d975c29e08d88b04f","size":1963,"noattachment":false,"key":"/@putout/keypress/-/@putout/keypress-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/keypress/download/@putout/keypress-1.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","tmp":"tmp/keypress_1.0.0_1609260972071_0.5387412012206925"},"_hasShrinkwrap":false,"publish_time":1609260972210,"_cnpm_publish_time":1609260972210,"_cnpmcore_publish_time":"2021-12-17T00:58:24.466Z"}},"readme":"# @putout/keypress [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/keypress.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/keypress\"npm\"\n[DependencyStatusURL]: https://david-dm.org/coderaiser/putout?path=packages/keypress\n[DependencyStatusIMGURL]: https://david-dm.org/coderaiser/putout.svg?path=packages/keypress\n\n`putout` keypress handler (renamed to [@putout/cli-keypress](https://www.npmjs.com/package/@putout/cli-keypress)).\n\n## Install\n\n```\nnpm i @putout/keypress\n```\n\n## Examples\n\n```js\nconst keyPress = require('keypress');\nconst {isStop} = keyPress();\n\n// do some stuf antil 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","_attachments":{},"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}