whatskey

What's the key? I'm confused.


License
MIT
Install
npm install whatskey@0.1.0

Documentation


What's the key? I'm confused..

NPM version NPM downloads Build Status

Install

$ npm install --save whatskey

Usage

const whatskey = require('whatskey')

whatskey('')
//=> Option

whatskey('')
//=> Ctrl

whatskey.getCharByKeyName('Command')
//=> ⌘

API

whatskey(char)

char

The key char.

whatskey.getCharByKeyName(keyName)

keyName

The key name, eg: 'Ctrl'.

License

MIT © EGOIST