keycodes

Key codes and names

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
keycodes
1401.0.07 years ago9 years agoMinified + gzip package size for keycodes in KB

Readme

Key codes and names

Install

npm install --save keycodes

Usage

import keycodes from 'keycodes';

keycodes('enter'); // 13
keycodes(13); // 'enter'

API

keycodes(key)

key

Type: string, number
Key name string or key code number.

Related

License

MIT