whatskey

0.1.0 • Public • Published


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

Readme

Keywords

none

Package Sidebar

Install

npm i whatskey

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kchan