{"_id":"keypress","_rev":"37012","name":"keypress","description":"Make any Node ReadableStream emit \"keypress\" events","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"time":{"modified":"2021-06-03T10:09:16.000Z","created":"2012-07-06T22:10:39.002Z","0.2.1":"2013-07-06T04:58:05.119Z","0.2.0":"2013-06-17T20:03:45.827Z","0.1.0":"2012-08-08T21:32:04.471Z","0.0.2":"2012-07-06T22:37:46.988Z","0.0.1":"2012-07-06T22:10:39.002Z"},"users":{"luk":true,"gazzwi86":true,"tunnckocore":true,"mle626":true,"ctrl-alt-meh":true,"kontrax":true,"tommyzzm":true,"bucaran":true,"cbpetersen":true,"benji.":true,"guananddu":true,"sopepos":true,"jovaage":true,"fabian.moron.zirfas":true,"redmonkeydf":true,"darkowlzz":true,"lmanukyan":true,"demian_dark":true,"about_hiroppy":true,"quocnguyen":true,"krickray":true,"mimshwright":true,"cantidio":true,"hugovila":true,"bracken":true,"wolfram77":true,"daniel7byte":true,"abuelwafa":true},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"repository":{"type":"git","url":"git://github.com/TooTallNate/keypress.git"},"versions":{"0.2.1":{"name":"keypress","version":"0.2.1","description":"Make any Node ReadableStream emit \"keypress\" events","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/TooTallNate/keypress.git"},"keywords":["keypress","readline","core"],"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/TooTallNate/keypress/issues"},"_id":"keypress@0.2.1","dist":{"shasum":"1e80454250018dbad4c3fe94497d6e67b6269c77","size":5091,"noattachment":false,"key":"/keypress/-/keypress-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/keypress/download/keypress-0.2.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1373086685119,"_hasShrinkwrap":false,"_cnpm_publish_time":1373086685119},"0.2.0":{"name":"keypress","version":"0.2.0","description":"Make any Node ReadableStream emit \"keypress\" events","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/TooTallNate/keypress.git"},"keywords":["keypress","readline","core"],"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/TooTallNate/keypress/issues"},"_id":"keypress@0.2.0","dist":{"shasum":"411c8fa37db7762e7d4d87d1e729513a49cd56ab","size":5090,"noattachment":false,"key":"/keypress/-/keypress-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keypress/download/keypress-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1371499425827,"_hasShrinkwrap":false,"_cnpm_publish_time":1371499425827},"0.1.0":{"name":"keypress","version":"0.1.0","description":"Make any Node ReadableStream emit \"keypress\" events","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/TooTallNate/keypress.git"},"keywords":["keypress","readline","core"],"license":"MIT","_id":"keypress@0.1.0","dist":{"shasum":"4a3188d4291b66b4f65edb99f806aa9ae293592a","size":4485,"noattachment":false,"key":"/keypress/-/keypress-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keypress/download/keypress-0.1.0.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1344461524471,"_hasShrinkwrap":false,"_cnpm_publish_time":1344461524471},"0.0.2":{"name":"keypress","version":"0.0.2","description":"Make any Node ReadableStream emit \"keypress\" events","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/TooTallNate/keypress.git"},"keywords":["keypress","readline","core"],"license":"MIT","_id":"keypress@0.0.2","dist":{"shasum":"90a371646c12d1d943fced4377b6ecbd8a01bd89","size":3976,"noattachment":false,"key":"/keypress/-/keypress-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/keypress/download/keypress-0.0.2.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1341614266988,"_hasShrinkwrap":false,"_cnpm_publish_time":1341614266988},"0.0.1":{"name":"keypress","version":"0.0.1","description":"Make any Node ReadableStream emit \"keypress\" events","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/TooTallNate/keypress.git"},"keywords":["keypress","readline","core"],"license":"MIT","_id":"keypress@0.0.1","dist":{"shasum":"95e7108bb11835c4e41438697b2a82dae40029ad","size":3779,"noattachment":false,"key":"/keypress/-/keypress-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/keypress/download/keypress-0.0.1.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1341612639002,"_hasShrinkwrap":false,"_cnpm_publish_time":1341612639002}},"readme":"keypress\n========\n### Make any Node ReadableStream emit \"keypress\" events\n\n\nPrevious to Node `v0.8.x`, there was an undocumented `\"keypress\"` event that\n`process.stdin` would emit when it was a TTY.\n\nNow in Node `v0.8.x`, this `\"keypress\"` event does not get emitted by default,\nbut rather only when it is being used in conjuction with the `readline` (or by\nextension, the `repl`) module.\n\nThis module is the exact logic from the node `v0.8.x` releases ripped out into its\nown module.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install keypress\n```\n\nOr add it to the `\"dependencies\"` section of your _package.json_ file.\n\n\nExample\n-------\n\n``` js\nvar keypress = require('keypress');\n\n// make `process.stdin` begin emitting \"keypress\" events\nkeypress(process.stdin);\n\n// listen for the \"keypress\" event\nprocess.stdin.on('keypress', function (ch, key) {\n  console.log('got \"keypress\"', key);\n  if (key.ctrl && key.name == 'c') {\n    process.stdin.pause();\n  }\n});\n\nprocess.stdin.resume();\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/TooTallNate/keypress/issues"},"license":"MIT"}