cmd-or-ctrl
The main thing this package does is simply returning command
or control
based on the OS the user is using, and the another thing is to return the common names of OSs.
How to use
# npm npm i cmd-or-ctrl # yarn yarn add cmd-or-ctrl
var cmdOrCtrl = ; console// ctrl / cmdconsole// ctrl / cmdconsole// control / commandconsole// Ctrl / Cmdconsole// Control / Commandconsole// alternative of `cmdOrCtrl`, returns `ctrl` console;// returns 'win32' or other os nameconsole;// returns 'macOS' / 'Linux' / 'Windows' or other os name