Contains the key codes as static values for keys on your keyboard. Useful for auto completion and readability.
yarn add seng-keycodes
npm i -S seng-keycodes
import SengKeycodes from 'seng-keycodes'; // import SengKeycodes from 'seng-keycodes/lib/classname'; // do something with SengKeycodes
Clone a copy of the repo:
git clone https://github.com/mediamonks/seng-keycodes.git
Change to the seng-keycodes directory:
Install dev dependencies:
Use one of the following main scripts:
yarn build # build this project yarn dev # run compilers in watch mode, both for babel and typescript yarn test # run the unit tests incl coverage yarn test:dev # run the unit tests in watch mode yarn lint # run eslint and tslint on this project yarn doc # generate typedoc documentation
When installing this module, it adds a pre-commit hook, that runs lint and prettier commands before committing, so you can be sure that everything checks out.
MIT © MediaMonks