@fiahfy/electron-accelerator-formatter
v0.0.4
Published
Format electron accelerator according to the platform
Downloads
1
Readme
electron-accelerator-formatter
Format electron accelerator according to the platform.
Installation
npm install @fiahfy/electron-accelerator-formatter
Usage
import { format } from '@fiahfy/electron-accelerator-formatter'
console.log(format('CmdOrCtrl+A')) // '⌘A' on darwin, 'Ctrl+A' on win32