UNPKG

react-hotkeys-hook

Version:

React hook for using keyboard shortcuts in components. This is a hook version for the [hotkeys] package.

89 lines (88 loc) 2 kB
{ "name": "react-hotkeys-hook", "version": "3.4.0", "repository": "https://JohannesKlauss@github.com/JohannesKlauss/react-keymap-hook.git", "homepage": "https://johannesklauss.github.io/react-hotkeys-hook/", "author": "Johannes Klauss", "main": "dist/index.js", "typings": "dist/index.d.ts", "module": "dist/react-hotkeys-hook.esm.js", "files": [ "dist", "src" ], "keywords": [ "react", "hook", "hooks", "component", "hotkey", "shortcut", "keyboard", "shortcuts", "keypress", "hotkeys" ], "license": "MIT", "scripts": { "start": "tsdx watch", "build": "tsdx build", "test": "jest", "publish": "np", "docz:dev": "docz dev", "docz:build": "docz build" }, "babel": { "presets": [ "@babel/preset-env", "@babel/preset-typescript", "@babel/preset-react" ] }, "jest": { "setupFilesAfterEnv": [ "./setupTests.js" ], "testPathIgnorePatterns": [ "pkg", ".docz", "docs" ] }, "prettier": { "printWidth": 80, "semi": true, "singleQuote": true, "trailingComma": "es5" }, "dependencies": { "hotkeys-js": "3.8.7" }, "devDependencies": { "@babel/core": "7.14.8", "@babel/plugin-proposal-class-properties": "7.14.5", "@babel/preset-env": "7.14.8", "@babel/preset-react": "7.14.5", "@babel/preset-typescript": "7.14.5", "@testing-library/react": "12.0.0", "@testing-library/react-hooks": "7.0.1", "@testing-library/user-event": "13.2.0", "@types/jest": "26.0.24", "@types/react": "17.0.14", "@types/react-dom": "17.0.9", "docz": "2.3.1", "eslint-plugin-prettier": "3.4.0", "jest": "26.6.3", "prettier": "2.3.2", "react": "17.0.2", "react-dom": "17.0.2", "react-test-renderer": "17.0.2", "tsdx": "0.14.1", "tslib": "2.3.0", "typescript": "4.3.5" }, "peerDependencies": { "react": ">=16.8.1", "react-dom": ">=16.8.1" } }