1.0.2 โข Published 5 months ago
get-control-key-emoji v1.0.2
๐ get-control-key-emoji
A tiny utility to get the correct control key emoji based on the user's OS.
๐ Lightweight ยท ๐ฏ Zero dependencies ยท โก Works in browser environments
๐ฆ Installation
npm install get-control-key-emoji
๐ Usage
ES Module
import getControlKeyEmoji from "get-control-key-emoji";
console.log(getControlKeyEmoji()); // "โ" on Mac, "โ" on Windows
CommonJS
const getControlKeyEmoji = require("get-control-key-emoji");
console.log(getControlKeyEmoji());
๐ฏ What It Does
This function returns:
"โ"
on Mac (Command key)"โ"
on Windows/Linux (Windows key)
๐ License
MIT ยฉ Walle Mechson (Or Shadow Feather Doesn't Really Matters Does it?)