Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 904 Bytes

README.md

File metadata and controls

54 lines (35 loc) · 904 Bytes

keycodes

GPR

Javascript DOM event key codes map.

Install

Setup the .yarnrc file:

"@afractal:registry" "https://npm.pkg.github.com"

Setup the .npmrc file:

@afractal:registry=https://npm.pkg.github.com

Add the definition inside package.json:

"dependencies": {
    "@afractal/keycodes": "<version>"
}

Install the package with yarn:

yarn install

Usage

import keycodes from "@afractal/keycodes";

const enterCode = keycodes["enter"];
const enterCode = keycodes.enter;
// both return 13

License

This product is licensed under ther MIT license.


made with ❤️ by me