{"_id":"keycode","_rev":"1590572","name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","dist-tags":{"latest":"2.2.1"},"maintainers":[{"name":"timoxley","email":""}],"time":{"modified":"2021-11-15T17:31:04.000Z","created":"2013-08-15T01:39:42.580Z","2.2.1":"2021-11-15T17:17:31.117Z","2.2.0":"2018-03-21T11:28:35.017Z","2.1.9":"2017-05-03T14:12:10.482Z","2.1.8":"2016-12-13T23:06:20.106Z","2.1.7":"2016-09-23T04:06:29.778Z","2.1.6":"2016-09-14T21:30:23.557Z","2.1.5":"2016-09-14T21:16:28.247Z","2.1.4":"2016-07-30T20:47:20.550Z","2.1.2":"2016-05-30T03:46:45.701Z","2.1.1":"2016-03-05T01:42:40.539Z","2.1.0":"2015-05-01T09:51:13.302Z","2.0.0":"2015-02-03T07:30:40.734Z","1.0.1":"2014-12-23T23:00:18.848Z","1.0.0":"2014-09-30T04:31:47.675Z","0.3.0":"2013-08-21T03:12:20.266Z","0.2.3":"2013-08-21T02:39:46.882Z","0.2.2":"2013-08-15T01:39:42.580Z"},"users":{"285858315":true,"ash":true,"benji.":true,"akiva":true,"9joneg":true,"mwyatt":true,"slurm":true,"vzg03566":true,"monjer":true,"dreamanddead":true,"mimshwright":true,"jmsherry":true,"zalithka":true,"cueedee":true,"jidan70":true,"assiduous":true,"nbuchanan":true,"muzi131313":true,"zhenguo.zhao":true},"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"versions":{"2.2.1":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.2.1","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./index.d.ts","gitHead":"c282ff62a4ff05a523d6026a66e83a4892e7f6e7","_id":"keycode@2.2.1","_nodeVersion":"16.11.1","_npmVersion":"8.1.3","dist":{"shasum":"09c23b2be0611d26117ea2501c2c391a01f39eff","size":28354,"noattachment":false,"key":"/keycode/-/keycode-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.2.1.tgz"},"_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keycode_2.2.1_1636996650687_0.8238794930549347"},"_hasShrinkwrap":false,"publish_time":1636996651117,"_cnpm_publish_time":1636996651117},"2.2.0":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.2.0","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"907ed6ecaab6a32671ece058edb93bede3543827","_id":"keycode@2.2.0","_shasum":"3d0af56dc7b8b8e5cba8d0a97f107204eec22b04","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.9.4","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"3d0af56dc7b8b8e5cba8d0a97f107204eec22b04","size":28563,"noattachment":false,"key":"/keycode/-/keycode-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.2.0.tgz"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keycode_2.2.0_1521631714793_0.9270165937774029"},"_hasShrinkwrap":false,"publish_time":1521631715017,"_cnpm_publish_time":1521631715017},"2.1.9":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.9","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"0cad233de8b7dbad00bb7d6bbb952c79c630fcec","_id":"keycode@2.1.9","_shasum":"964a23c54e4889405b4861a5c9f0480d45141dfa","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"964a23c54e4889405b4861a5c9f0480d45141dfa","size":28021,"noattachment":false,"key":"/keycode/-/keycode-2.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.9.tgz"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/keycode-2.1.9.tgz_1493820728219_0.2873733432497829"},"publish_time":1493820730482,"_hasShrinkwrap":false,"_cnpm_publish_time":1493820730482},"2.1.8":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.8","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"1a9dc9c571e6c96c2c282afde723a6b72464c14e","_id":"keycode@2.1.8","_shasum":"94d2b7098215eff0e8f9a8931d5a59076c4532fb","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"94d2b7098215eff0e8f9a8931d5a59076c4532fb","size":28025,"noattachment":false,"key":"/keycode/-/keycode-2.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.8.tgz"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/keycode-2.1.8.tgz_1481670378047_0.5840517964679748"},"publish_time":1481670380106,"_cnpm_publish_time":1481670380106,"_hasShrinkwrap":false},"2.1.7":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.7","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"64aa2c645c2cf2696420e270c38e6b5796238ea4","_id":"keycode@2.1.7","_shasum":"7b9255919f6cff562b09a064d222dca70b020f5c","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.3.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"7b9255919f6cff562b09a064d222dca70b020f5c","size":27591,"noattachment":false,"key":"/keycode/-/keycode-2.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.7.tgz"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/keycode-2.1.7.tgz_1474603589559_0.2023061728104949"},"publish_time":1474603589778,"_cnpm_publish_time":1474603589778,"_hasShrinkwrap":false},"2.1.6":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.6","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"ad4a213705b1cb569388953fab727ad710a440a4","_id":"keycode@2.1.6","_shasum":"d7c3b49885d6a67ed9bf3688010c7b91de630f40","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.3.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"d7c3b49885d6a67ed9bf3688010c7b91de630f40","size":27599,"noattachment":false,"key":"/keycode/-/keycode-2.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.6.tgz"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/keycode-2.1.6.tgz_1473888623309_0.40224721608683467"},"publish_time":1473888623557,"_cnpm_publish_time":1473888623557,"_hasShrinkwrap":false},"2.1.5":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.5","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^3.0.2"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"edd0cf4c90dd4365aefa6c8362e8546ad333bbcd","_id":"keycode@2.1.5","_shasum":"7ab0072ad676e128eb2ccd83f52858b0ffee4f4d","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.3.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"dist":{"shasum":"7ab0072ad676e128eb2ccd83f52858b0ffee4f4d","size":27620,"noattachment":false,"key":"/keycode/-/keycode-2.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.5.tgz"},"maintainers":[{"name":"timoxley","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/keycode-2.1.5.tgz_1473887785871_0.637976631289348"},"publish_time":1473887788247,"_cnpm_publish_time":1473887788247,"_hasShrinkwrap":false},"2.1.4":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.4","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^2.4.5"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"typings":"./keycode.d.ts","gitHead":"99053f0147375432ba34a1fde50dd79f8a07222b","_id":"keycode@2.1.4","_shasum":"faa717f03ceb1661b9f322c6c89d239eee96bcde","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"faa717f03ceb1661b9f322c6c89d239eee96bcde","size":27625,"noattachment":false,"key":"/keycode/-/keycode-2.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.4.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/keycode-2.1.4.tgz_1469911640310_0.2877988100517541"},"publish_time":1469911640550,"_cnpm_publish_time":1469911640550,"_hasShrinkwrap":false},"2.1.2":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.2","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^2.4.5"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"gitHead":"0b1d667252371e8be4c240751be5a96b2043905d","_id":"keycode@2.1.2","_shasum":"23bbe2308de2f72be763ec2ef4e8c4f87e458d57","_from":".","_npmVersion":"3.9.5","_nodeVersion":"5.10.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"23bbe2308de2f72be763ec2ef4e8c4f87e458d57","size":27486,"noattachment":false,"key":"/keycode/-/keycode-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/keycode-2.1.2.tgz_1464580003485_0.7524782784748822"},"publish_time":1464580005701,"_cnpm_publish_time":1464580005701,"_hasShrinkwrap":false},"2.1.1":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.1","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^2.4.5"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"gitHead":"91768d981a262038c1ebe2caf5709401a0ef0557","_id":"keycode@2.1.1","_shasum":"d9027a47934756c2b70d1b82b2f74eeccf30f9bc","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1-rc.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"d9027a47934756c2b70d1b82b2f74eeccf30f9bc","size":27390,"noattachment":false,"key":"/keycode/-/keycode-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/keycode-2.1.1.tgz_1457142159226_0.7151744919829071"},"publish_time":1457142160539,"_cnpm_publish_time":1457142160539,"_hasShrinkwrap":false},"2.1.0":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.1.0","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^2.1.0"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"gitHead":"5d1b4abaadefa6db89cfd6947408f8ea33c60e81","_id":"keycode@2.1.0","_shasum":"a37fd465a77753de3bc2415d1bc2883ccb4a3464","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"a37fd465a77753de3bc2415d1bc2883ccb4a3464","size":27393,"noattachment":false,"key":"/keycode/-/keycode-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.1.0.tgz"},"publish_time":1430473873302,"_cnpm_publish_time":1430473873302,"_hasShrinkwrap":false},"2.0.0":{"name":"keycode","description":"Convert between keyboard keycodes and keynames and vice versa.","version":"2.0.0","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"^2.1.0"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":["keyboard","keycode","keyboardevent","ascii","keydown","keyup","metakey","keyname","keypress"],"author":{"name":"Tim Oxley","email":"secoif@gmail.com"},"gitHead":"2b2e45ad8d320b27eb28e3671fc1dd8163dc2a5c","_id":"keycode@2.0.0","_shasum":"b445237438d1a3e794a258b5029bcbfa939b5c80","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"b445237438d1a3e794a258b5029bcbfa939b5c80","size":27149,"noattachment":false,"key":"/keycode/-/keycode-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-2.0.0.tgz"},"publish_time":1422948640734,"_cnpm_publish_time":1422948640734,"_hasShrinkwrap":false},"1.0.1":{"name":"keycode","description":"Map of keyboard codes","version":"1.0.1","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"author":{"name":"Tim Oxley"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"~1.12.0"},"homepage":"https://github.com/timoxley/keycode","dependencies":{},"keywords":[],"gitHead":"2ac43a93086ace949db4e1be1dc3ed9a990f7733","_id":"keycode@1.0.1","_shasum":"6071ee15c68e9f3876cb786ecdcadb648d38f8c7","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.33","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"6071ee15c68e9f3876cb786ecdcadb648d38f8c7","size":26315,"noattachment":false,"key":"/keycode/-/keycode-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-1.0.1.tgz"},"publish_time":1419375618848,"_cnpm_publish_time":1419375618848,"_hasShrinkwrap":false},"1.0.0":{"name":"keycode","repo":"timoxley/keycode","description":"Map of keyboard codes","version":"1.0.0","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"author":{"name":"Tim Oxley"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"devDependencies":{"mocha":"~1.12.0"},"gitHead":"284e9870bb5906f626dd22b5172f280dfec4ac2b","homepage":"https://github.com/timoxley/keycode","_id":"keycode@1.0.0","_shasum":"7d860a085bbb2d3f36ff4fcb9734b8ef2fa92243","_from":".","_npmVersion":"2.1.1","_nodeVersion":"0.10.32","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"dist":{"shasum":"7d860a085bbb2d3f36ff4fcb9734b8ef2fa92243","size":26275,"noattachment":false,"key":"/keycode/-/keycode-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-1.0.0.tgz"},"publish_time":1412051507675,"_cnpm_publish_time":1412051507675,"_hasShrinkwrap":false},"0.3.0":{"name":"keycode","repo":"timoxley/keycode","description":"Map of keyboard codes","version":"0.3.0","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"author":{"name":"Tim Oxley"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"readmeFilename":"Readme.md","_id":"keycode@0.3.0","dist":{"shasum":"d2944da65897777d9bb24cae613979405fc24913","size":26142,"noattachment":false,"key":"/keycode/-/keycode-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"publish_time":1377054740266,"_cnpm_publish_time":1377054740266,"_hasShrinkwrap":false},"0.2.3":{"name":"keycode","repo":"timoxley/keycode","description":"Map of keyboard codes","version":"0.2.3","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"author":{"name":"Tim Oxley"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"readmeFilename":"Readme.md","_id":"keycode@0.2.3","dist":{"shasum":"fb7f11287653f781e842cfc71735f5d07863ad91","size":25876,"noattachment":false,"key":"/keycode/-/keycode-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-0.2.3.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"publish_time":1377052786882,"_cnpm_publish_time":1377052786882,"_hasShrinkwrap":false},"0.2.2":{"name":"keycode","repo":"timoxley/keycode","description":"Map of keyboard codes","version":"0.2.2","main":"index.js","directories":{"example":"examples","test":"test"},"scripts":{"test":"mocha test/keycode.js"},"repository":{"type":"git","url":"git://github.com/timoxley/keycode.git"},"author":{"name":"Tim Oxley"},"license":"MIT","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"readmeFilename":"Readme.md","_id":"keycode@0.2.2","dist":{"shasum":"69a8b1aa88a5ac206f2a7bad6a908373437c7cbd","size":25713,"noattachment":false,"key":"/keycode/-/keycode-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/keycode/download/keycode-0.2.2.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"timoxley","email":"secoif@gmail.com"},"maintainers":[{"name":"timoxley","email":""}],"publish_time":1376530782580,"_cnpm_publish_time":1376530782580,"_hasShrinkwrap":false}},"readme":"# keycode\n\n  Simple map of keyboard codes.\n\n[![Build Status](https://travis-ci.org/timoxley/keycode.png?branch=master)](https://travis-ci.org/timoxley/keycode)\n\n## Installation\n\n#### npm\n\n```sh\n$ npm install keycode\n```\n\n#### component\n```sh\n$ component install timoxley/keycode\n```\n\n## Example\n\n```js\nvar keycode = require('keycode');\ndocument.addEventListener('keydown', function(e) {\n  console.log(\"You pressed\", keycode(e))\n})\n```\n\n## API\n\n`keycode` tries to make an intelligent guess as to what\nyou're trying to discover based on the type of argument\nyou supply.\n\n### keycode(keycode:Event)\n\nReturns the name of the key associated with this event.\n\n```js\ndocument.body.addEventListener('keyup', function(e) {\n  console.log(keycode(e)) // prints name of key\n})\n```\n\n[Due to the keypress event being weird](https://github.com/timoxley/keycode/wiki/wtf%3F-keydown,-keyup-vs-keypress),`keycode `currently does not support the `keypress` event, but this should not be an issue as `keydown` and `keyup` work perfectly fine.\n\n### keycode(keycode:Number)\n\nReturns the lowercase name of a given numeric keycode.\n\n```js\nkeycode(13) // => 'enter'\n```\n\n### keycode(name:String)\n\nReturns the numeric keycode for given key name.\n\n```js\nkeycode('Enter') // => 13\n\n// keycode is not case sensitive\nkeycode('eNtEr') // => 13\n```\n\n### Name Aliases\n\nCommon aliases are also supplied:\n\n```js\n> for (var alias in keycode.aliases) { console.log(alias, keycode(keycode(alias))) }\nctl ctrl\npause pause/break\nbreak pause/break\ncaps caps lock\nescape esc\npgup page up\npgdn page down\nins insert\ndel delete\nspc space\n```\n\n## keycode.isEventKey(event: Event, nameOrCode: String | Number)\n\nTests if an keyboard event against a given name or keycode.\nWill return `true` if the event matches the given name or keycode, `false` otherwise.\n\n```js\n// assume event is an keydown event with key 'enter'\nkeycode.isEventKey(event, 'enter') // => true\nkeycode.isEventKey(event, 'down') // => false\n\nkeycode.isEventKey(event, 13) // => true\nkeycode.isEventKey(event, 40) // => false\n```\n\n\n## Maps\n\nKey code/name maps are available directly as `keycode.codes` and `keycode.names` respectively.\n\n```js\nkeycode.names[13] // => 'enter'\nkeycode.codes['enter'] // => 13\n```\n\n## Credit\n\n```\n project  : keycode\n repo age : 3 years, 8 months\n active   : 29 days\n commits  : 66\n files    : 13\n authors  :\n    49\tTim Oxley        74.3%\n     4\tjkroso           6.1%\n     3\tAmir Abu Shareb  4.5%\n     1\tGreg Reimer      1.5%\n     1\tKenan Yildirim   1.5%\n     1\tAbel Toledano    1.5%\n     1\tSam              1.5%\n     1\tTJ Holowaychuk   1.5%\n     1\tYoshua Wuyts     1.5%\n     1\tNathan Zadoks    1.5%\n     1\tBrenton Simpson  1.5%\n     1\tBrian Noguchi    1.5%\n     1\tGilad Peleg      1.5%\n```\n\nOriginal key mappings lifted from http://jsfiddle.net/vWx8V/ via http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes\n\n## License\n\n[MIT](http://opensource.org/licenses/mit-license.php)\n","_attachments":{},"homepage":"https://github.com/timoxley/keycode","bugs":{"url":"https://github.com/timoxley/keycode/issues"},"license":"MIT"}