@acusti/use-keyboard-events
Version:
React hook that takes keyboard event handlers and attaches them to the document
55 lines (54 loc) • 1.59 kB
JSON
{
"name": "@acusti/use-keyboard-events",
"version": "0.10.0",
"type": "module",
"sideEffects": false,
"exports": "./dist/useKeyboardEvents.js",
"main": "./dist/useKeyboardEvents.js",
"types": "./dist/useKeyboardEvents.d.ts",
"files": [
"dist",
"src"
],
"description": "React hook that takes keyboard event handlers and attaches them to the document",
"keywords": [
"react",
"react-hooks",
"hooks",
"keyboard-events",
"key-event-listening",
"useKeyboardEvents",
"typescript",
"ts",
"flow"
],
"scripts": {
"test": "vitest"
},
"repository": {
"type": "git",
"url": "https://github.com/acusti/uikit.git",
"directory": "packages/use-keyboard-events"
},
"author": "andrew patton <andrew@acusti.ca> (https://www.acusti.ca)",
"license": "Unlicense",
"bugs": {
"url": "https://github.com/acusti/uikit/issues"
},
"homepage": "https://github.com/acusti/uikit/tree/main/packages/use-keyboard-events#readme",
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.1.1",
"happy-dom": "^17.4.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "5.8.3",
"vitest": "^3.1.1"
},
"peerDependencies": {
"react": "^16.8 || ^17 || ^18 || ^19",
"react-dom": "^16.8 || ^17 || ^18 || ^19"
}
}