{"_id":"parse-key","_rev":"442955","name":"parse-key","description":"Parses strings into key objects of the same format as the ones emitted by nodejs readline.","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2021-08-05T06:40:20.000Z","created":"2013-01-22T13:50:10.013Z","0.2.1":"2013-02-02T17:26:45.290Z","0.2.0":"2013-02-02T05:33:32.840Z","0.1.1":"2013-01-25T01:45:54.300Z","0.1.0":"2013-01-22T13:50:10.013Z"},"users":{},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/parse-key.git"},"versions":{"0.2.1":{"name":"parse-key","version":"0.2.1","description":"Parses strings into key objects of the same format as the ones emitted by nodejs readline.","main":"parse-key.js","scripts":{"test":"node-trap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/parse-key.git"},"keywords":["readline","string","print","convert"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"license":"MIT","dependencies":{},"devDependencies":{"trap":"~0.3.2"},"readmeFilename":"README.md","_id":"parse-key@0.2.1","dist":{"shasum":"7bcf76595536e36075664be4d687e4bdd910208f","size":2958,"noattachment":false,"key":"/parse-key/-/parse-key-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-key/download/parse-key-0.2.1.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1359826005290,"_cnpm_publish_time":1359826005290,"_hasShrinkwrap":false},"0.2.0":{"name":"parse-key","version":"0.2.0","description":"Parses strings into key objects of the same format as the ones emitted by nodejs readline.","main":"parse-key.js","scripts":{"test":"node-trap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/parse-key.git"},"keywords":["readline","string","print","convert"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"license":"MIT","dependencies":{},"devDependencies":{"trap":"~0.3.2"},"readmeFilename":"README.md","_id":"parse-key@0.2.0","dist":{"shasum":"8daab478a2ce03effd341d72f8c9e5065068411a","size":2867,"noattachment":false,"key":"/parse-key/-/parse-key-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-key/download/parse-key-0.2.0.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1359783212840,"_cnpm_publish_time":1359783212840,"_hasShrinkwrap":false},"0.1.1":{"name":"parse-key","version":"0.1.1","description":"Parses strings into key objects of the same format as the ones emitted by nodejs readline.","main":"parse-key.js","scripts":{"test":"node-trap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/parse-key.git"},"keywords":["readline","string","print","convert"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"license":"MIT","dependencies":{},"devDependencies":{"trap":"~0.3.2"},"readmeFilename":"README.md","_id":"parse-key@0.1.1","dist":{"shasum":"7887d8c8a8fe76a0b0baa984f85091e785e7ca0e","size":2379,"noattachment":false,"key":"/parse-key/-/parse-key-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-key/download/parse-key-0.1.1.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1359078354300,"_cnpm_publish_time":1359078354300,"_hasShrinkwrap":false},"0.1.0":{"name":"parse-key","version":"0.1.0","description":"Parses strings into key objects of the same format as the ones emitted by nodejs readline.","main":"parse-key.js","scripts":{"test":"node-trap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/parse-key.git"},"keywords":["readline","string","print","convert"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"license":"MIT","dependencies":{},"devDependencies":{"trap":"~0.3.2"},"readmeFilename":"README.md","_id":"parse-key@0.1.0","dist":{"shasum":"d5e41df52ca89bb5a373e223c5191c5891d180a9","size":2327,"noattachment":false,"key":"/parse-key/-/parse-key-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-key/download/parse-key-0.1.0.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1358862610013,"_cnpm_publish_time":1358862610013,"_hasShrinkwrap":false}},"readme":"# parse-key [![build status](https://secure.travis-ci.org/thlorenz/parse-key.png)](http://next.travis-ci.org/thlorenz/parse-key)\n\nParses strings into key objects of the same format as the ones emitted by [nodejs readline](http://nodejs.org/api/readline.html).\n\nCounter part to [stringify-key](https://github.com/thlorenz/stringify-key).\n\n## Installation\n\n    npm i parse-key\n\n## Usage\n\n```js\nvar parse = require('parse-key');\n\nparse('ctrl-c')       // returns { name: 'c', ctrl: true, meta: false, shift: false, alt: false }\n\nparse('shift-ctrl-c') // returns { name: 'c', ctrl: true, meta: false, shift: true, alt: false }\n\nparse('alt-c')        // returns { name: 'c', ctrl: false, meta: false, shift: false, alt: true }\n```\n\n## Caveats\n\nFor completeness' sake, the `alt` modifier is parsed and included with the returned `key` although the nodejs readline does not\ninclude it in its `key` object nor does it have any effect when the key is emitted.\n","_attachments":{},"readmeFilename":"README.md","license":"MIT"}