### Install and Build Packages with pnpm Source: https://github.com/jamesmoss/emojitron/blob/main/README.md This bash script demonstrates the basic commands for setting up and building the monorepo using pnpm. It covers dependency installation, building all packages, running tests, and performing type checks. ```bash pnpm install pnpm build pnpm test pnpm typecheck ``` -------------------------------- ### Manipulate Emoji Size and Create Patterns with TypeScript Source: https://github.com/jamesmoss/emojitron/blob/main/README.md Shows how to utilize the `@emoji-toolkit/size` package for controlling emoji dimensions and arranging them into visual patterns. Examples include scaling emojis to be larger, creating rectangular grids, progress bars, and pyramid structures. ```typescript import { makeLarge, createGrid, createProgressBar, createPyramid } from "@emoji-toolkit/size"; // Scale emojis makeLarge("โญ"); // "โญโญโญ" // Create shapes createGrid("๐ŸŸฆ", 3, 3); // ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ // ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ // ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ createProgressBar("๐ŸŸข", "โšช", 0.7, 10); // "๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸขโšชโšชโšช" createPyramid("๐Ÿ”บ", 3); // ๐Ÿ”บ // ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ // ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ ``` -------------------------------- ### Monorepo Development Scripts with pnpm Source: https://github.com/jamesmoss/emojitron/blob/main/README.md This section outlines the essential pnpm scripts used for developing and maintaining the Emoji Toolkit monorepo. These scripts facilitate common development tasks such as building, running in watch mode, testing, linting, and cleaning build artifacts. ```bash pnpm build # Build all packages pnpm dev # Watch mode for development pnpm test # Run all tests pnpm lint # Type check all packages pnpm clean # Clean build outputs ``` -------------------------------- ### Combine Emojis into ZWJ Sequences and Patterns with TypeScript Source: https://github.com/jamesmoss/emojitron/blob/main/README.md Demonstrates the functionality of the `@emoji-toolkit/combiner` package for creating complex emoji sequences, particularly Zero-Width Joiner (ZWJ) combinations. It also includes utilities for generating preset sequences and creative patterns like waves and mirrors. ```typescript import { createFamily, getPresetSequence, wave, mirror } from "@emoji-toolkit/combiner"; // Create ZWJ combinations createFamily("๐Ÿ‘จ", "๐Ÿ‘ฉ", "๐Ÿ‘ง"); // "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง" // Use presets getPresetSequence("moon"); // "๐ŸŒ‘๐ŸŒ’๐ŸŒ“๐ŸŒ”๐ŸŒ•๐ŸŒ–๐ŸŒ—๐ŸŒ˜" // Creative patterns wave("๐ŸŒŠ", 3); // "๐ŸŒŠ ๐ŸŒŠ๐ŸŒŠ ๐ŸŒŠ๐ŸŒŠ๐ŸŒŠ ๐ŸŒŠ๐ŸŒŠ ๐ŸŒŠ" mirror(["๐Ÿ”ด", "๐ŸŸก", "๐ŸŸข"]); // "๐Ÿ”ด๐ŸŸก๐ŸŸข๐ŸŸก๐Ÿ”ด" ``` -------------------------------- ### Combine Emojis and Create Patterns with @emoji-toolkit/combiner Source: https://context7.com/jamesmoss/emojitron/llms.txt Demonstrates how to combine emojis using Zero-Width Joiner (ZWJ) to create families, professions, and preset sequences. It also includes functions for generating wave, mirror, and alternating patterns, as well as creating bullet lists. ```typescript import { createFamily, createProfession, wave, mirror, alternate, getPresetSequence, bulletList } from "@emoji-toolkit/combiner"; // Create family combinations using ZWJ const family = createFamily("๐Ÿ‘จ", "๐Ÿ‘ฉ", "๐Ÿ‘ง", "๐Ÿ‘ฆ"); // Returns: "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ" (renders as single family emoji) // Create profession emojis const developer = createProfession("๐Ÿ‘จ", "๐Ÿ’ป"); // Returns: "๐Ÿ‘จโ€๐Ÿ’ป" const scientist = createProfession("๐Ÿ‘ฉ", "๐Ÿ”ฌ"); // Returns: "๐Ÿ‘ฉโ€๐Ÿ”ฌ" const artist = createProfession("๐Ÿ‘ฉ", "๐ŸŽจ"); // Returns: "๐Ÿ‘ฉโ€๐ŸŽจ" // Get preset emoji sequences const moonPhases = getPresetSequence("moon"); // Returns: "๐ŸŒ‘๐ŸŒ’๐ŸŒ“๐ŸŒ”๐ŸŒ•๐ŸŒ–๐ŸŒ—๐ŸŒ˜" const loveSequence = getPresetSequence("love"); // Returns: "๐Ÿ’•๐Ÿ’–๐Ÿ’—๐Ÿ’“๐Ÿ’ž" // Create wave pattern (crescendo and decrescendo) const wavePattern = wave("๐ŸŒŠ", 3); // Returns: "๐ŸŒŠ ๐ŸŒŠ๐ŸŒŠ ๐ŸŒŠ๐ŸŒŠ๐ŸŒŠ ๐ŸŒŠ๐ŸŒŠ ๐ŸŒŠ" // Create mirror pattern const mirrored = mirror(["๐Ÿ”ด", "๐ŸŸก", "๐ŸŸข"]); // Returns: "๐Ÿ”ด๐ŸŸก๐ŸŸข๐ŸŸก๐Ÿ”ด" // Create alternating pattern const checkered = alternate("โฌ›", "โฌœ", 8); // Returns: "โฌ›โฌœโฌ›โฌœโฌ›โฌœโฌ›โฌœ" // Create bullet list const list = bulletList("โœจ", ["First item", "Second item", "Third item"]); // Returns: // โœจ First item // โœจ Second item // โœจ Third item ``` -------------------------------- ### Apply Color Themes and Skin Tones with TypeScript Source: https://github.com/jamesmoss/emojitron/blob/main/README.md Illustrates the usage of the `@emoji-toolkit/colorizer` package for modifying emoji appearance. This includes applying various skin tone modifiers and applying color themes, such as making specific emojis green or colorizing heart emojis. ```typescript import { applySkinTone, makeGreen, colorizeHearts } from "@emoji-toolkit/colorizer"; // Apply skin tones applySkinTone("๐Ÿ‘‹", "dark"); // "๐Ÿ‘‹๐Ÿฟ" // Color themes makeGreen("I โค๏ธ coding"); // Replaces hearts with green emojis colorizeHearts("Love ๐Ÿ’™ nature", "green"); // "Love ๐Ÿ’š nature" ``` -------------------------------- ### Generate Random Emojis and Passwords with TypeScript Source: https://github.com/jamesmoss/emojitron/blob/main/README.md Explains how to use the `@emoji-toolkit/randomizer` package for generating random emojis, selecting emojis from specific categories, shuffling arrays of emojis, and creating emoji-based passwords. This package is useful for adding an element of randomness to applications. ```typescript import { randomEmoji, randomFromCategory, shuffle, emojiPassword } from "@emoji-toolkit/randomizer"; // Random emojis randomEmoji(); // "๐ŸŽ‰" (random) randomFromCategory("animals"); // "๐Ÿถ" (random animal) // Shuffle shuffle(["๐ŸŽ", "๐ŸŠ", "๐Ÿ‹"]); // ["๐ŸŠ", "๐ŸŽ", "๐Ÿ‹"] (random order) // Generate emoji password emojiPassword(4); // "๐ŸŒŸ๐Ÿธ๐ŸŽจ๐Ÿš€" ``` -------------------------------- ### Explore Emoji Collections and Options Source: https://context7.com/jamesmoss/emojitron/llms.txt Query available options and explore emoji collections using utilities from @emoji-toolkit/randomizer, @emoji-toolkit/colorizer, @emoji-toolkit/mood, @emoji-toolkit/size, and @emoji-toolkit/combiner. These functions help retrieve categories, emojis within categories, color themes, mood types, size options, and preset sequences. ```typescript import { getAvailableCategories, getEmojisInCategory } from "@emoji-toolkit/randomizer"; import { getAvailableThemes } from "@emoji-toolkit/colorizer"; import { getAvailableMoods, getEmojisForMood } from "@emoji-toolkit/mood"; import { getAvailableSizes } from "@emoji-toolkit/size"; import { getAvailablePresets } from "@emoji-toolkit/combiner"; // Get all available emoji categories const categories = getAvailableCategories(); // Returns: ["smileys", "people", "animals", "food", "travel", "activities", "objects", "symbols", "nature"] // Get all emojis in a category const animals = getEmojisInCategory("animals"); // Returns: ["๐Ÿถ", "๐Ÿฑ", "๐Ÿญ", "๐Ÿน", "๐Ÿฐ", "๐ŸฆŠ", "๐Ÿป", ...] // Get available color themes const themes = getAvailableThemes(); // Returns: ["green", "blue", "red", "yellow", "purple", "pink"] // Get available mood types const moods = getAvailableMoods(); // Returns: ["happy", "sad", "angry", "calm", "surprised", "neutral"] // Get emojis for a specific mood const angryEmojis = getEmojisForMood("angry"); // Returns: ["๐Ÿ˜ ", "๐Ÿ˜ก", "๐Ÿคฌ", "๐Ÿ‘ฟ", "๐Ÿ’ข", "๐Ÿ˜ค", "๐Ÿ”ฅ", "๐Ÿ’€"] // Get available size options const sizes = getAvailableSizes(); // Returns: ["tiny", "small", "medium", "large", "huge", "giant"] // Get available preset sequences const presets = getAvailablePresets(); // Returns: ["love", "weather", "moon", "time", "growth", "fire", "ocean", "space", "food", "celebration"] ``` -------------------------------- ### Transform Emoji Moods with TypeScript Source: https://github.com/jamesmoss/emojitron/blob/main/README.md Demonstrates how to use the `@emoji-toolkit/mood` package to detect and transform the emotional state of emojis within text. It includes functions for making emojis sad, transforming moods to a specified state, and detecting the inherent mood of an emoji. ```typescript import { makeHappySad, transformMood, detectMood } from "@emoji-toolkit/mood"; // Detect emoji mood detectMood("๐Ÿ˜€"); // "happy" detectMood("๐Ÿ˜ข"); // "sad" // Transform moods makeHappySad("Hello ๐Ÿ˜€ World! ๐Ÿ˜Š"); // "Hello ๐Ÿ˜ข World! ๐Ÿ˜ญ" transformMood("๐Ÿ˜ ", "calm"); // "๐Ÿ˜Œ" ``` -------------------------------- ### Scale Emojis and Create Patterns (TypeScript) Source: https://context7.com/jamesmoss/emojitron/llms.txt This functionality allows scaling emojis to different sizes (large, huge, tiny) and creating various visual patterns such as grids, pyramids, and progress bars. It involves repeating emojis with separators and can be used for generating visual representations in text-based applications. The relevant package is `@emoji-toolkit/size`. ```typescript import { makeLarge, createGrid, createProgressBar, createPyramid, scaleEmoji } from "@emoji-toolkit/size"; // Scale emojis to different sizes const large = makeLarge("โญ"); // Returns: "โญโญโญ" const huge = makeHuge("๐Ÿ”ฅ"); // Returns: "๐Ÿ”ฅ ๐Ÿ”ฅ ๐Ÿ”ฅ ๐Ÿ”ฅ" const tiny = makeTiny("๐Ÿ’Ž"); // Returns: "ยท๐Ÿ’Žยท" // Create a grid pattern const grid = createGrid("๐ŸŸฆ", 3, 4); // Returns: // ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ // ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ // ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ๐ŸŸฆ // Create a pyramid const pyramid = createPyramid("๐Ÿ”บ", 4); // Returns: // ๐Ÿ”บ // ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ // ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ // ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ๐Ÿ”บ // Create a progress bar const progress = createProgressBar("๐ŸŸข", "โšช", 0.7, 10); // Returns: "๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸขโšชโšชโšช" const loading = createProgressBar("โ–ˆ", "โ–‘", 0.35, 20); // Returns: "โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘" // Repeat emoji with separator const repeated = repeatEmoji("โญ", 5, " "); // Returns: "โญ โญ โญ โญ โญ" ``` -------------------------------- ### Analyze Emoji Sequences with @emoji-toolkit/combiner Source: https://context7.com/jamesmoss/emojitron/llms.txt This snippet focuses on analyzing emoji sequences, specifically Zero-Width Joiner (ZWJ) combinations. It includes functions to determine if an emoji is a ZWJ sequence, split a sequence into its component emojis, and decompose known ZWJ combinations. It also allows retrieval of all known ZWJ combinations. ```typescript import { splitZWJ, isZWJSequence, decomposeZWJ, getKnownZWJCombinations } from "@emoji-toolkit/combiner"; // Check if emoji is a ZWJ sequence const isSequence = isZWJSequence("๐Ÿ‘จโ€๐Ÿ’ป"); // Returns: true const isNotSequence = isZWJSequence("๐Ÿ˜€"); // Returns: false // Split ZWJ sequence into components const components = splitZWJ("๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง"); // Returns: ["๐Ÿ‘จ", "๐Ÿ‘ฉ", "๐Ÿ‘ง"] // Decompose known ZWJ combinations const familyParts = decomposeZWJ("๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ"); // Returns: ["๐Ÿ‘จ", "๐Ÿ‘ฉ", "๐Ÿ‘ง", "๐Ÿ‘ฆ"] const rainbowFlag = decomposeZWJ("๐Ÿณ๏ธโ€๐ŸŒˆ"); // Returns: ["๐Ÿณ๏ธ", "๐ŸŒˆ"] const unknownEmoji = decomposeZWJ("๐Ÿ˜€"); // Returns: null (not a ZWJ sequence) // Get all known ZWJ combinations const allCombinations = getKnownZWJCombinations(); // Returns object mapping combined emojis to their components: // { // "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง": ["๐Ÿ‘จ", "๐Ÿ‘ฉ", "๐Ÿ‘ง"], // "๐Ÿ‘จโ€๐Ÿ’ป": ["๐Ÿ‘จ", "๐Ÿ’ป"], // "๐Ÿณ๏ธโ€๐ŸŒˆ": ["๐Ÿณ๏ธ", "๐ŸŒˆ"], // ... // } ``` -------------------------------- ### Replace Emojis with Color Themes (TypeScript) Source: https://context7.com/jamesmoss/emojitron/llms.txt This function enables replacing emojis, particularly hearts, with alternatives from predefined color themes. It provides quick color transformations for text (e.g., making text green or blue), fetching random emojis associated with a specific color theme, and retrieving all emojis belonging to a particular theme. The functionality is part of the `@emoji-toolkit/colorizer` package. ```typescript import { colorizeHearts, makeGreen, makeBlue, getColoredEmoji, getEmojisForTheme } from "@emoji-toolkit/colorizer"; // Replace heart emojis with a specific color theme const greenHearts = colorizeHearts("I โค๏ธ nature ๐Ÿ’™ and forests ๐Ÿ’›", "green"); // Returns: "I ๐Ÿ’š nature ๐ŸŒฒ and forests ๐Ÿฅ’" (random green emojis) // Quick color transformations const greenText = makeGreen("Love โค๏ธ coding"); // Converts to green theme const blueText = makeBlue("Ocean ๐Ÿ’™ waves โค๏ธ"); // Converts to blue theme // Get a random emoji from a color theme const greenEmoji = getColoredEmoji("green"); // Returns random: ๐Ÿ’š, ๐Ÿฅ’, ๐Ÿฅฆ, etc. const redEmoji = getColoredEmoji("red"); // Returns random: โค๏ธ, ๐Ÿ”ด, ๐ŸŽ, etc. // Get all emojis for a theme const purpleEmojis = getEmojisForTheme("purple"); // Returns: ["๐Ÿ’œ", "๐Ÿ‡", "๐Ÿ†", "๐Ÿ”ฎ", "โ˜‚๏ธ", "๐ŸŸฃ", "๐ŸŸช", "๐Ÿ‘พ", "๐Ÿฆ„", "๐ŸŒธ", "๐ŸŽต", "๐Ÿชป"] ``` -------------------------------- ### Generate Random Emojis with @emoji-toolkit/randomizer Source: https://context7.com/jamesmoss/emojitron/llms.txt Provides functions for generating random emojis, either completely random, from specific categories, or as unique sequences. It also includes utilities for shuffling emojis in arrays or within text, creating emoji passwords, and performing weighted random selections. Dice rolling and coin flipping are also supported. ```typescript import { randomEmoji, randomFromCategory, shuffle, emojiPassword, weightedRandom, randomEmojis, shuffleEmojisInText, rollDice, flipCoin } from "@emoji-toolkit/randomizer"; // Get a completely random emoji const random = randomEmoji(); // Returns random emoji from all categories // Get random emoji from specific category const randomAnimal = randomFromCategory("animals"); // Returns: "๐Ÿถ", "๐Ÿฑ", etc. const randomFood = randomFromCategory("food"); // Returns: "๐Ÿ•", "๐Ÿ”", etc. const randomSmiley = randomFromCategory("smileys"); // Returns: "๐Ÿ˜€", "๐Ÿ˜‚", etc. // Generate multiple random emojis const multipleRandom = randomEmojis(5, false); // Returns 5 random (may repeat) const uniqueRandom = randomEmojis(5, true); // Returns 5 unique emojis // Shuffle an array of emojis const original = ["๐ŸŽ", "๐ŸŠ", "๐Ÿ‹", "๐Ÿ‡", "๐Ÿ“"]; const shuffled = shuffle(original); // Returns shuffled order: ["๐Ÿ‹", "๐ŸŽ", "๐Ÿ‡", "๐Ÿ“", "๐ŸŠ"] // Shuffle emojis within text (preserves text, moves emojis) const text = "Hello ๐Ÿ˜€ world ๐ŸŒ how are you ๐Ÿ‘‹"; const shuffledText = shuffleEmojisInText(text); // Returns: "Hello ๐ŸŒ world ๐Ÿ‘‹ how are you ๐Ÿ˜€" (example) // Generate emoji password const password = emojiPassword(6); // Returns: "๐ŸŒŸ๐Ÿธ๐ŸŽจ๐Ÿš€๐Ÿ•๐Ÿ’ก" // Weighted random selection const weighted = weightedRandom({ "๐ŸŽฏ": 10, // 50% chance "โญ": 6, // 30% chance "๐Ÿ’ซ": 4 // 20% chance }); // Roll dice and flip coin const diceRoll = rollDice(); // Returns one of: "โš€", "โš", "โš‚", "โšƒ", "โš„", "โš…" const coinFlip = flipCoin("๐Ÿ‘", "๐Ÿ‘Ž"); // Returns: "๐Ÿ‘" or "๐Ÿ‘Ž" ``` -------------------------------- ### Apply and Analyze Skin Tones (TypeScript) Source: https://context7.com/jamesmoss/emojitron/llms.txt This function allows applying specific skin tone modifiers to person emojis and removing existing ones. It can also identify the skin tone of an emoji or apply a chosen skin tone to all compatible emojis within a given text. The primary package for these operations is `@emoji-toolkit/colorizer`. Input emojis can be single characters or strings containing multiple emojis. ```typescript import { applySkinTone, removeSkinTone, getSkinTone, applyAllSkinTones } from "@emoji-toolkit/colorizer"; // Apply skin tone to a single emoji const darkSkinWave = applySkinTone("๐Ÿ‘‹", "dark"); // Returns: "๐Ÿ‘‹๐Ÿฟ" const mediumSkinTone = applySkinTone("๐Ÿ‘", "medium"); // Returns: "๐Ÿ‘๐Ÿฝ" const unsupported = applySkinTone("๐Ÿš€", "dark"); // Returns: "๐Ÿš€" (unchanged) // Remove skin tone modifiers const baseEmoji = removeSkinTone("๐Ÿ‘‹๐Ÿฟ"); // Returns: "๐Ÿ‘‹" // Check what skin tone an emoji has const tone = getSkinTone("๐Ÿ‘‹๐Ÿฟ"); // Returns: "dark" const noTone = getSkinTone("๐Ÿ‘‹"); // Returns: null // Apply skin tone to all compatible emojis in text const text = "Hello ๐Ÿ‘‹ nice to meet you ๐Ÿค let's high five ๐Ÿ™Œ"; const tonedText = applyAllSkinTones(text, "medium-dark"); // Returns: "Hello ๐Ÿ‘‹๐Ÿพ nice to meet you ๐Ÿค๐Ÿพ let's high five ๐Ÿ™Œ๐Ÿพ" ``` -------------------------------- ### Transform Emojis in Text Source: https://context7.com/jamesmoss/emojitron/llms.txt Apply advanced text transformations to emojis while preserving surrounding content using functions from @emoji-toolkit/mood, @emoji-toolkit/randomizer, and @emoji-toolkit/size. These utilities allow for mood transformation, random emoji selection (global or category-specific), and scaling of emojis within text. ```typescript import { transformAllMoods } from "@emoji-toolkit/mood"; import { randomizeEmojis } from "@emoji-toolkit/randomizer"; import { scaleAllEmojis } from "@emoji-toolkit/size"; // Transform all emojis in text to a specific mood const happyText = "Great day ๐Ÿ˜€ but feeling stressed ๐Ÿ˜ฐ and angry ๐Ÿ˜ "; const calmVersion = transformAllMoods(happyText, "calm"); // Returns: "Great day ๐Ÿ˜Œ but feeling stressed ๐Ÿ˜‡ and angry ๐Ÿง˜" // Randomize all emojis in text const original = "I love ๐Ÿ• and ๐Ÿ” for lunch"; const randomized = randomizeEmojis(original); // Returns: "I love ๐ŸŽจ and ๐Ÿš€ for lunch" (completely random emojis) const categoryRandomized = randomizeEmojis(original, "food"); // Returns: "I love ๐Ÿฃ and ๐ŸŒฎ for lunch" (random food emojis only) // Scale all emojis in text const textWithEmojis = "Great work ๐Ÿ‘ keep it up ๐ŸŽฏ amazing ๐ŸŒŸ"; const largeVersion = scaleAllEmojis(textWithEmojis, "large"); // Returns: "Great work ๐Ÿ‘๐Ÿ‘๐Ÿ‘ keep it up ๐ŸŽฏ๐ŸŽฏ๐ŸŽฏ amazing ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ" ``` -------------------------------- ### Transform Emoji Moods (TypeScript) Source: https://context7.com/jamesmoss/emojitron/llms.txt This function transforms emoji moods between different states like happy, sad, angry, and calm. It can detect the current mood of an emoji, transform single emojis, or modify all emojis of a certain mood within a text. It also allows fetching a random emoji for a specified mood. Dependencies include the `@emoji-toolkit/mood` package. ```typescript import { detectMood, transformMood, makeHappySad, makeAngryCool, getEmojiForMood } from "@emoji-toolkit/mood"; // Detect the current mood of an emoji const mood = detectMood("๐Ÿ˜€"); // Returns: "happy" const sadMood = detectMood("๐Ÿ˜ข"); // Returns: "sad" const unknownMood = detectMood("๐Ÿš€"); // Returns: null // Transform a single emoji to a different mood const calmEmoji = transformMood("๐Ÿ˜ ", "calm"); // Returns: "๐Ÿ˜Œ" const happyEmoji = transformMood("๐Ÿ˜ข", "happy"); // Returns: "๐Ÿ˜€" (or similar) // Transform all happy emojis to sad in text const sadText = makeHappySad("Hello ๐Ÿ˜€ World! ๐Ÿ˜Š Great day! ๐Ÿ˜"); // Returns: "Hello ๐Ÿ˜ข World! ๐Ÿ˜ญ Great day! ๐Ÿ˜ข" // Calm down angry text const calmText = makeAngryCool("I'm so mad ๐Ÿ˜ ๐Ÿ˜ก๐Ÿคฌ"); // Returns: "I'm so mad ๐Ÿ˜Œ๐Ÿ˜‡๐Ÿง˜" // Get a random emoji for a specific mood const randomHappy = getEmojiForMood("happy"); // Returns random from: ๐Ÿ˜€, ๐Ÿ˜ƒ, ๐Ÿ˜„, etc. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.