UNPKG

@rwh/keystrokes

Version:

Keystrokes is an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.

63 lines • 1.74 kB
{ "name": "@rwh/keystrokes", "version": "1.6.0", "description": "Keystrokes is an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.", "type": "module", "main": "dist/keystrokes.umd.cjs", "module": "dist/keystrokes.js", "unpkg": "dist/keystrokes.iife.js", "jsdelivr": "dist/keystrokes.iife.js", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/keystrokes.js", "require": "./dist/keystrokes.umd.cjs" } }, "files": [ "dist/*.js", "dist/*.cjs", "dist/*.map", "dist/*.d.ts", "logo.png", "readme.md" ], "keywords": [ "keyboard", "key binding", "key combo", "keys", "key events" ], "author": "Robert Hurst <robertwhurst@gmail.com>", "license": "MIT", "funding": "https://github.com/sponsors/RobertWHurst", "repository": { "type": "git", "url": "github:RobertWHurst/Keystrokes" }, "bugs": { "email": "robertwhurst@gmail.com", "url": "https://github.com/RobertWHurst/Keystrokes/issues/new?template=bug_report.md" }, "devDependencies": { "@eslint/js": "^10.0.1", "@rollup/plugin-typescript": "^12.3.1", "@types/node": "^26.6.6", "eslint": "^10.15.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.7", "prettier": "^3.10.1", "typescript": "^6.0.3", "typescript-eslint": "^8.72.2", "vite": "^8.3.8", "vitest": "^5.1.0" }, "scripts": { "lint": "eslint ./src", "test": "vitest run", "build": "rm -rf dist/ && cp ../../readme.md readme.md && vite build", "dev": "vite build -w" } }