{"library":"keycode-js","type":"library","category":null,"description":"keycode-js is a JavaScript package providing a comprehensive set of constants for keyboard events, specifically mapping to KeyboardEvent.keyCode, KeyboardEvent.code, and KeyboardEvent.key properties. The current stable version is 3.1.0. The package maintains a steady release cadence, incorporating new key event codes and values while addressing compatibility and consistency across browser environments. A key differentiator is its provision of constants for all three KeyboardEvent properties, allowing developers to choose the most appropriate and future-proof method for handling keyboard input. It also ships with TypeScript types, enhancing developer experience in TypeScript projects, and offers direct support for Deno environments.","language":"javascript","status":"active","version":"3.1.0","tags":["javascript","keycode","constants","typescript","deno","js","ts"],"last_verified":"Wed May 27","install":[{"cmd":"npm install keycode-js","imports":["import * as KeyCode from 'keycode-js';","import { KEY_RETURN } from 'keycode-js';","import { CODE_RETURN } from 'keycode-js';","const KeyCode = require('keycode-js');"]},{"cmd":"yarn add keycode-js","imports":[]},{"cmd":"pnpm add keycode-js","imports":[]}],"homepage":null,"github":"https://github.com/kabirbaidhya/keycode-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/keycode-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/keycode-js/compatibility"}}