0.1.0 • Published 8 years ago

whatskey v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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