{"_id":"@brendangooch/keyboard-input","_rev":"2-e06495cc7547ff7535307cf099071375","name":"@brendangooch/keyboard-input","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@brendangooch/keyboard-input","version":"1.0.0","keywords":[],"author":{"name":"B Gooch","email":"brendangooch@gmail.com"},"license":"MIT","_id":"@brendangooch/keyboard-input@1.0.0","maintainers":[{"name":"brendangooch","email":"brendangooch@gmail.com"}],"homepage":"https://github.com/brendangooch/keyboard-input#readme","bugs":{"url":"https://github.com/brendangooch/keyboard-input/issues","email":"brendangooch@gmail.com"},"dist":{"shasum":"b771ee0cd59b65029e99ac4ea548c3ca9737c393","tarball":"https://registry.npmjs.org/@brendangooch/keyboard-input/-/keyboard-input-1.0.0.tgz","fileCount":7,"integrity":"sha512-Ko7xADsorf1kR92caV8jjRhI1sE4CT1p/aJH0e9tzSI0F3K4XX6C+wqOXbnXjHWQtWbfXlgduWLMe/gdT1Qfqw==","signatures":[{"sig":"MEYCIQDTXbTuHdYbuIgxasCTjHVLjGY1ED0lFxEd64A5XTVMoQIhAMrOvdXN19HThuTX9zJDk8smwfp4zobWrqFz80ZhMjmN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8080},"type":"module","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"8bc6893d9e720d6a99e40b9a4ce0663987584d6d","private":false,"scripts":{"build":"tsc -p tsconfig.prod.json","prepack":"npm run build","prebuild":"npm run remove-lib","build-dev":"npm run prebuild && tsc","remove-lib":"rm -rf lib"},"_npmUser":{"name":"brendangooch","email":"brendangooch@gmail.com"},"repository":{"url":"git+https://github.com/brendangooch/keyboard-input.git","type":"git"},"_npmVersion":"10.9.0","description":"a class that listens for and processes keydown events on the document body before dispatching its own custom events for the client to listen for","directories":{},"_nodeVersion":"21.4.0","dependencies":{"@brendangooch/utils":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-input_1.0.0_1732014228096_0.03150940443554151","host":"s3://npm-registry-packages"},"deprecated":"package updated and moved to @brendangooch/user-input"},"1.0.1":{"name":"@brendangooch/keyboard-input","version":"1.0.1","keywords":[],"author":{"name":"B Gooch","email":"brendangooch@gmail.com"},"license":"MIT","_id":"@brendangooch/keyboard-input@1.0.1","maintainers":[{"name":"brendangooch","email":"brendangooch@gmail.com"}],"homepage":"https://github.com/brendangooch/keyboard-input#readme","bugs":{"url":"https://github.com/brendangooch/keyboard-input/issues","email":"brendangooch@gmail.com"},"dist":{"shasum":"f34e6a1b3e03c72e9e22d60309c7362ef5db4a79","tarball":"https://registry.npmjs.org/@brendangooch/keyboard-input/-/keyboard-input-1.0.1.tgz","fileCount":7,"integrity":"sha512-LZW9Mb3jtXPhoEl2wB3gExfrLSuQcYTOAt/8OmL1sDdwaXYbTIwrip/YYu5ppJRgfL/QXFUaMQp2fFfwdsysJA==","signatures":[{"sig":"MEQCIC7EwONRaa4wpgqhgY8Kk+gjH3gcvWXvwao7bR+iP56iAiBKb5geY/Ay9fNrmQiKYU70TdVPCzoo3R1XI0XyV5SK8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8163},"type":"module","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"a49e942e045c0df5f12168c03ca60c48670fec11","private":false,"scripts":{"build":"tsc -p tsconfig.prod.json","prepack":"npm run build","prebuild":"npm run remove-lib","build-dev":"npm run prebuild && tsc","remove-lib":"rm -rf lib"},"_npmUser":{"name":"brendangooch","email":"brendangooch@gmail.com"},"repository":{"url":"git+https://github.com/brendangooch/keyboard-input.git","type":"git"},"_npmVersion":"10.9.0","description":"a class that listens for and processes keydown events on the document body before dispatching its own custom events for the client to listen for","directories":{},"_nodeVersion":"21.4.0","dependencies":{"@brendangooch/utils":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/keyboard-input_1.0.1_1732110935924_0.4272642662176711","host":"s3://npm-registry-packages"},"deprecated":"package updated and moved to @brendangooch/user-input"}},"time":{"created":"2024-11-19T11:03:47.976Z","modified":"2024-11-30T14:05:31.451Z","1.0.0":"2024-11-19T11:03:48.274Z","1.0.1":"2024-11-20T13:55:36.100Z"},"bugs":{"url":"https://github.com/brendangooch/keyboard-input/issues","email":"brendangooch@gmail.com"},"author":{"name":"B Gooch","email":"brendangooch@gmail.com"},"license":"MIT","homepage":"https://github.com/brendangooch/keyboard-input#readme","keywords":[],"repository":{"url":"git+https://github.com/brendangooch/keyboard-input.git","type":"git"},"description":"a class that listens for and processes keydown events on the document body before dispatching its own custom events for the client to listen for","maintainers":[{"name":"brendangooch","email":"brendangooch@gmail.com"}],"readme":"# keyboard-input\n\na class that listens for and processes keydown events on the document body before dispatching its own custom events for the client to listen for\n\nsimply drop the class into your project, turn it on, and tell it which custom events to dispatch\n\n```typescript\nconst input = new KeyboardInput();\ninput.enable([\n    'a-key-pressed',\n    'ctrl-a-pressed',\n    'ctrl-k-pressed',\n    'left-key-pressed',\n    'right-key-pressed',\n    'shift-left-pressed',\n    'shift-right-pressed',\n    'spacebar-pressed',\n    'enter-pressed'\n]);\ninput.turnOn();\ndocument.addEventListener('ctrl-a-pressed', () => console.log('you pressed Ctrl A'));\ndocument.addEventListener('spacebar-pressed', () => console.log('you pressed the spacebar'));\n// ...\n```","readmeFilename":"README.md"}