{"_id":"parse-key","_rev":"15-f8d0c7752e51c1f4eb1445d3d367e9fc","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"},"versions":{"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"},"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","readmeFilename":"README.md","_id":"parse-key@0.1.0","dist":{"shasum":"d5e41df52ca89bb5a373e223c5191c5891d180a9","tarball":"https://registry.npmjs.org/parse-key/-/parse-key-0.1.0.tgz","integrity":"sha512-oMpbGORNq2iwTK/6JfI3ze2r1j7lQOmw+m09z9JgOLUqLvtXv6xWJjvxQ7BymI54Xm3S+sanpDgk36QaGjxp+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSNAtWydB06eMiqqZtezCWzBMnsUB7Ednr0NU/kl+wjAIhANS5ZMkJc2CFxfUQovqrVzEGykIbrN2HU7Pv21kbo3s8"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"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"},"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","readmeFilename":"README.md","_id":"parse-key@0.1.1","dist":{"shasum":"7887d8c8a8fe76a0b0baa984f85091e785e7ca0e","tarball":"https://registry.npmjs.org/parse-key/-/parse-key-0.1.1.tgz","integrity":"sha512-PXbOLjapsMs32662UQF/uL74uBI+fl6GBPhtFfMo2VV5Wqc25YTMcRxS+Log/fp+IovjPMRJMdRFMV33ALi5Lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDKm8hc41dKmQXdKa3/41vUl4lzA+fBUza0AyI/G0XtgIgXrHX5K+Xf2vUFBob0Wq291nCdw+NV9pMHiV4wlpnTKQ="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"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"},"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, sequence: '\\u0003' }\n\nparse('shift-ctrl-c') // returns { name: 'c', ctrl: true, meta: false, shift: true, alt: false, sequence: '\\u0003' }\n\nparse('alt-c')        // returns { name: 'c', ctrl: false, meta: false, shift: false, alt: true, sequence: 'c' }\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","readmeFilename":"README.md","_id":"parse-key@0.2.0","dist":{"shasum":"8daab478a2ce03effd341d72f8c9e5065068411a","tarball":"https://registry.npmjs.org/parse-key/-/parse-key-0.2.0.tgz","integrity":"sha512-3P3zNAGUQg3SlaP0oaDd/hKuTUi5fYeWxgra1+wh4ovG2SSDfOb6wfj2CWpQn8oS8e2+P88KOuKy+mbiOQMETw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQGw4FOpNbA6kdqS1QIE+cyEF8uctpxQ17KmiMtf+6twIhAPxMKMa2zsSs+Xk+7NnHKSKxc7pSWmuiJFv6yDDJsJeC"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"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"},"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, sequence: '\\u0003' }\n\nparse('shift-ctrl-c') // returns { name: 'c', ctrl: true, meta: false, shift: true, alt: false, sequence: '\\u0003' }\n\nparse('alt-c')        // returns { name: 'c', ctrl: false, meta: false, shift: false, alt: true, sequence: 'c' }\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","readmeFilename":"README.md","_id":"parse-key@0.2.1","dist":{"shasum":"7bcf76595536e36075664be4d687e4bdd910208f","tarball":"https://registry.npmjs.org/parse-key/-/parse-key-0.2.1.tgz","integrity":"sha512-ENta7tqTYc2A15JBG2z2b6bNjaqrTnBEgvycQBwnO6Tmfvk3Dix9IhIpuqI4VdvySd4iDoxeWLUjwDODrQ3S7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMlywZVrMvTBIIz+qkwSxR4NGgc10iwY63QOqnuYJp0QIgSS7jsmf76YwpD1t43SkdDPLUlaSR4Dal35D3Pp8yNM4="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]}},"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","maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2022-06-23T10:48:55.065Z","created":"2013-01-22T13:50:08.719Z","0.1.0":"2013-01-22T13:50:10.013Z","0.1.1":"2013-01-25T01:45:54.300Z","0.2.0":"2013-02-02T05:33:32.840Z","0.2.1":"2013-02-02T17:26:45.290Z"},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/parse-key.git"}}