1.0.2 โ€ข Published 5 months ago

get-control-key-emoji v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

๐Ÿ“Œ 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?)

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago