keycodes

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i keycodes

Weekly Downloads

1,836

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andrepolischuk