/keycodes

Key codes and names

Primary LanguageJavaScriptMIT LicenseMIT

keycodes Build Status

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