{"_id":"is-hotkey","_rev":"2782927","name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"ianstormtaylor","email":""}],"time":{"modified":"2022-06-13T06:06:36.000Z","created":"2017-10-16T01:16:19.353Z","0.2.0":"2020-11-24T14:43:01.562Z","0.1.8":"2020-11-24T14:41:07.436Z","0.1.7":"2020-11-22T17:19:11.153Z","0.1.6":"2019-09-20T14:12:28.642Z","0.1.5":"2019-09-08T17:14:21.860Z","0.1.4":"2018-10-24T21:00:12.261Z","0.1.3":"2018-08-07T22:18:43.823Z","0.1.2":"2018-03-21T00:46:37.688Z","0.1.1":"2017-10-18T00:59:03.025Z","0.1.0":"2017-10-17T18:46:47.203Z","0.0.3":"2017-10-16T19:00:01.394Z","0.0.2":"2017-10-16T18:43:05.464Z","0.0.1":"2017-10-16T01:16:19.353Z"},"users":{},"repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"versions":{"0.2.0":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.2.0","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","build:umd":"babel --plugins transform-es2015-modules-umd ./src -o ./lib/is-hotkey.umd.js","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build && yarn run build:umd","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.2.0","dist":{"shasum":"1835a68171a91e5c9460869d96336947c8340cef","size":6020,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.2.0.tgz"},"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.2.0_1606228981423_0.8430324773511964"},"_hasShrinkwrap":false,"publish_time":1606228981562,"_cnpm_publish_time":1606228981562,"_cnpmcore_publish_time":"2021-12-16T11:48:59.658Z"},"0.1.8":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.8","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.1.8","dist":{"shasum":"6b1f4b2d0e5639934e20c05ed24d623a21d36d25","size":5720,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.8.tgz"},"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.8_1606228867185_0.00926140008313392"},"_hasShrinkwrap":false,"publish_time":1606228867436,"_cnpm_publish_time":1606228867436,"_cnpmcore_publish_time":"2021-12-16T11:48:59.842Z"},"0.1.7":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.7","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","build:umd":"babel --plugins transform-es2015-modules-umd ./src -o ./lib/is-hotkey.umd.js","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build && yarn run build:umd","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.1.7","dist":{"shasum":"15b89a80c71df0a7367bafa8629a187196586522","size":6012,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.7.tgz"},"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.7_1606065550991_0.01821005914806606"},"_hasShrinkwrap":false,"publish_time":1606065551153,"_cnpm_publish_time":1606065551153,"_cnpmcore_publish_time":"2021-12-16T11:49:00.049Z"},"0.1.6":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.6","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.1.6","dist":{"shasum":"c214b1ccdcbda46fba4ba93d2de64915db737471","size":4901,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.6.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.6_1568988748471_0.6543937539078937"},"_hasShrinkwrap":false,"publish_time":1568988748642,"_cnpm_publish_time":1568988748642,"_cnpmcore_publish_time":"2021-12-16T11:49:00.334Z"},"0.1.5":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.5","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.1.5","dist":{"shasum":"5b3b3edb5f3b60618b0ec27f65801692639e85ca","size":4895,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.5.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.5_1567962861742_0.8506870451684714"},"_hasShrinkwrap":false,"publish_time":1567962861860,"_cnpm_publish_time":1567962861860,"_cnpmcore_publish_time":"2021-12-16T11:49:00.543Z"},"0.1.4":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.4","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.1.4","dist":{"shasum":"c34d2c85d6ec8d09a871dcf71931c8067a824c7d","size":4892,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.4.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.4_1540414812110_0.7728496738432544"},"_hasShrinkwrap":false,"publish_time":1540414812261,"_cnpm_publish_time":1540414812261,"_cnpmcore_publish_time":"2021-12-16T11:49:00.726Z"},"0.1.3":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.3","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-env":"^1.6.1","mocha":"^3.2.0"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"licenseText":"The MIT License\n\nCopyright &copy; 2017, [Ian Storm Taylor](https://ianstormtaylor.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"is-hotkey@0.1.3","dist":{"shasum":"8a129eec16f3941bd4f37191e02b9c3e91950549","size":5020,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.3.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.3_1533680323736_0.6375539350140325"},"_hasShrinkwrap":false,"publish_time":1533680323823,"_cnpm_publish_time":1533680323823,"_cnpmcore_publish_time":"2021-12-16T11:49:00.952Z"},"0.1.2":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.2","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","mocha":"^3.2.0","np":"^2.13.1"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"gitHead":"72d15c14c85a66114b9f094b62d00e3aa7fd09c9","bugs":{"url":"https://github.com/ianstormtaylor/is-hotkey/issues"},"homepage":"https://github.com/ianstormtaylor/is-hotkey#readme","_id":"is-hotkey@0.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"dist":{"shasum":"aeda5e4f542284700ae18b46980fb0637c021198","size":31625,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.2.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey_0.1.2_1521593197595_0.4136888005672068"},"_hasShrinkwrap":false,"publish_time":1521593197688,"_cnpm_publish_time":1521593197688,"_cnpmcore_publish_time":"2021-12-16T11:49:01.240Z"},"0.1.1":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.1","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","mocha":"^3.2.0","np":"^2.13.1"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"gitHead":"7d9c3486f87f86bda7386b3ba0dcaa3c64ca22ef","bugs":{"url":"https://github.com/ianstormtaylor/is-hotkey/issues"},"homepage":"https://github.com/ianstormtaylor/is-hotkey#readme","_id":"is-hotkey@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"6.9.5","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"dist":{"shasum":"b279a2fd108391be9aa93c6cb317f50357da549a","size":31614,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.1.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey-0.1.1.tgz_1508288342888_0.2219229603651911"},"directories":{},"publish_time":1508288343025,"_hasShrinkwrap":false,"_cnpm_publish_time":1508288343025,"_cnpmcore_publish_time":"2021-12-16T11:49:01.556Z"},"0.1.0":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","mocha":"^3.2.0","np":"^2.13.1"},"keywords":["code","combo","event","hotkey","key","keycode","keycodes","keycombo","keydown","keyup","mousetrap","shortcut","which"],"gitHead":"8fa9c04f9d981c70776d98be2b51f6381f3c03e9","bugs":{"url":"https://github.com/ianstormtaylor/is-hotkey/issues"},"homepage":"https://github.com/ianstormtaylor/is-hotkey#readme","_id":"is-hotkey@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"6.9.5","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"dist":{"shasum":"1eb9063c1745e4deb52fe625a0555316d3ed28cc","size":31466,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.1.0.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey-0.1.0.tgz_1508266007055_0.24306963942945004"},"directories":{},"publish_time":1508266007203,"_hasShrinkwrap":false,"_cnpm_publish_time":1508266007203,"_cnpmcore_publish_time":"2021-12-16T11:49:02.034Z"},"0.0.3":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.0.3","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","mocha":"^3.2.0","np":"^2.13.1"},"keywords":["combo","event","hotkey","key","keycombo","keydown","keyup","shortcut"],"gitHead":"48add56fa1d8f266ce8814f9da6d195ccbc39bb3","bugs":{"url":"https://github.com/ianstormtaylor/is-hotkey/issues"},"homepage":"https://github.com/ianstormtaylor/is-hotkey#readme","_id":"is-hotkey@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"6.9.5","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"dist":{"shasum":"3713fea135f86528c87cf39810b3934e45151390","size":31206,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.0.3.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey-0.0.3.tgz_1508180401225_0.7882841997779906"},"directories":{},"publish_time":1508180401394,"_hasShrinkwrap":false,"_cnpm_publish_time":1508180401394,"_cnpmcore_publish_time":"2021-12-16T11:49:02.338Z"},"0.0.2":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.0.2","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","mocha":"^3.2.0","np":"^2.13.1"},"keywords":["combo","event","hotkey","key","keycombo","keydown","keyup","shortcut"],"gitHead":"9d61f4033b035b4949d661405e4088f9b9ba1913","bugs":{"url":"https://github.com/ianstormtaylor/is-hotkey/issues"},"homepage":"https://github.com/ianstormtaylor/is-hotkey#readme","_id":"is-hotkey@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"6.9.5","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"dist":{"shasum":"43c2cead1c903a8c8173e6d60e531576ccf9b8a6","size":31125,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.0.2.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey-0.0.2.tgz_1508179385389_0.25406017526984215"},"directories":{},"publish_time":1508179385464,"_hasShrinkwrap":false,"_cnpm_publish_time":1508179385464,"_cnpmcore_publish_time":"2021-12-16T11:49:02.641Z"},"0.0.1":{"name":"is-hotkey","description":"Check whether a browser event matches a hotkey.","version":"0.0.1","license":"MIT","repository":{"type":"git","url":"git://github.com/ianstormtaylor/is-hotkey.git"},"main":"./lib/index.js","scripts":{"build":"babel ./src --out-dir ./lib","clean":"rm -rf ./lib ./node_modules","prepublish":"yarn run build","release":"np","test":"yarn run build && mocha","watch":"babel ./lib --out-dir ./lib --watch"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","mocha":"^3.2.0","np":"^2.13.1"},"keywords":["combo","event","hotkey","key","keycombo","keydown","keyup","shortcut"],"gitHead":"57b92da87109e244a48336a363a893c29ceba05b","bugs":{"url":"https://github.com/ianstormtaylor/is-hotkey/issues"},"homepage":"https://github.com/ianstormtaylor/is-hotkey#readme","_id":"is-hotkey@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"6.9.5","_npmUser":{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},"dist":{"shasum":"d8d817209b34292551a85357e65cdbfcfa763443","size":31136,"noattachment":false,"key":"/is-hotkey/-/is-hotkey-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-hotkey/download/is-hotkey-0.0.1.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-hotkey-0.0.1.tgz_1508116579158_0.5244155258405954"},"directories":{},"publish_time":1508116579353,"_hasShrinkwrap":false,"_cnpm_publish_time":1508116579353,"_cnpmcore_publish_time":"2021-12-16T11:49:03.235Z"}},"readme":"\n### `is-hotkey`\n\nA simple way to check whether a browser event matches a hotkey.\n\n<br/>\n\n### Features\n\n- Uses a simple, natural syntax for expressing hotkeys—`mod+s`, `cmd+alt+space`, etc.\n- Accepts `mod` for the classic \"`cmd` on Mac, `ctrl` on Windows\" use case.\n- Can use either `event.which` (default) or `event.key` to work regardless of keyboard layout.\n- Can be curried to reduce parsing and increase performance when needed.\n- Is very lightweight, weighing in at `< 1kb` minified and gzipped.\n\n<br/>\n\n### Example\n\nThe most basic usage...\n\n```js\nimport isHotkey from 'is-hotkey'\n\nfunction onKeyDown(e) {\n  if (isHotkey('mod+s', e)) {\n    ...\n  }\n}\n```\n\nOr, you can curry the hotkey string for better performance, since it is only parsed once...\n\n```js\nimport isHotkey from 'is-hotkey'\n\nconst isSaveHotkey = isHotkey('mod+s')\n\nfunction onKeyDown(e) {\n  if (isSaveHotkey(e)) {\n    ...\n  }\n}\n```\n\nThat's it!\n\n<br/>\n\n### Why?\n\nThere are tons of hotkey libraries, but they're often coupled to the view layer, or they bind events globally, or all kinds of weird things. You don't really want them to bind the events for you, you can do that yourself. \n\nInstead, you want to just check whether a single event matches a hotkey. And you want to define your hotkeys in the standard-but-non-trivial-to-parse syntax that everyone knows.\n\nBut most libraries don't expose their parsing logic. And even for the ones that do expose their hotkey parsing logic, pulling in an entire library just to check a hotkey string is overkill.\n\nSo... this is a simple and lightweight hotkey checker!\n\n<br/>\n\n### API\n\n```js\nimport isHotkey from 'is-hotkey'\n\nisHotkey('mod+s')(event)\nisHotkey('mod+s', { byKey: true })(event)\n\nisHotkey('mod+s', event)\nisHotkey('mod+s', { byKey: true }, event)\n```\n\nYou can either pass `hotkey, [options], event` in which case the hotkey will be parsed and compared immediately. Or you can passed just `hotkey, [options]` to receive a curried checking function that you can re-use for multiple events.\n\n```js\nisHotkey('mod+a')\nisHotkey('Control+S')\nisHotkey('cmd+opt+d')\nitHotkey('Meta+DownArrow')\nitHotkey('cmd+down')\n```\n\nThe API is case-insentive, and has all of the conveniences you'd expect—`cmd` vs. `Meta`, `opt` vs. `Alt`, `down` vs. `DownArrow`, etc. \n\nIt also accepts `mod` for the classic \"`cmd` on Mac, `ctrl` on Windows\" use case.\n\n```js\nimport isHotkey from 'is-hotkey'\nimport { isCodeHotkey, isKeyHotkey } from 'is-hotkey'\n\nisHotkey('mod+s')(event)\nisHotkey('mod+s', { byKey: true })(event)\n\nisCodeHotkey('mod+s', event)\nisKeyHotkey('mod+s', event)\n```\n\nBy default the hotkey string is checked using `event.which`. But you can also pass in `byKey: true` to compare using the [`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) API, which stays the same regardless of keyboard layout.\n\nOr to reduce the noise if you are defining lots of hotkeys, you can use the `isCodeHotkey` and `isKeyHotkey` helpers that are exported.\n\n```js\nimport { toKeyName, toKeyCode } from 'is-hotkey'\n\ntoKeyName('cmd') // \"meta\"\ntoKeyName('a') // \"a\"\n\ntoKeyCode('shift') // 16\ntoKeyCode('a') // 65\n```\n\nYou can also use the exposed `toKeyName` and `toKeyCode` helpers, in case you want to add the same level of convenience to your own APIs.\n\n```js\nimport { parseHotkey, compareHotkey } from 'is-hotkey'\n\nconst hotkey = parseHotkey('mod+s', { byKey: true })\nconst passes = compareHotkey(hotkey, event)\n```\n\nYou can also go even more low-level with the exposed `parseHotkey` and `compareHotkey` functions, which are what the default `isHotkey` export uses under the covers, in case you have more advanced needs.\n","_attachments":{},"license":"MIT"}