@tpmjs/emoji-magic
Detect the mood/sentiment and suggest appropriate emojis for the text
Test @tpmjs/emoji-magic (emojiMood) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/emoji-magicpnpm add @tpmjs/emoji-magicyarn add @tpmjs/emoji-magicbun add @tpmjs/emoji-magicdeno add npm:@tpmjs/emoji-magicimport { emojiMood } from '@tpmjs/emoji-magic';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { emojiMood } from '@tpmjs/emoji-magic';
const result = await generateText({
model: openai('gpt-4o'),
tools: { emojiMood },
prompt: 'Your prompt here...',
});
console.log(result.text);(text: string, count: number) => Promise<unknown>Available configuration options
textstringThe text to analyze for mood/sentiment
countintegerNumber of emoji suggestions to return
Schema extracted: 2/27/2026, 4:15:58 AM
AI SDK tools for emoji conversion and mood detection. Make your text more expressive! ✨
Convert text into emoji representations - perfect for making messages more expressive!
import { textToEmoji } from '@tpmjs/emoji-magic'; const result = await textToEmoji.execute({ text: "I love my cat and dog", style: 'creative' }); // Result: "I ❤️ my 🐱 and 🐶"
Detect the mood/sentiment and suggest appropriate emojis for the text.
import { emojiMood } from '@tpmjs/emoji-magic'; const result = await emojiMood.execute({ text: "This is amazing! I'm so excited!", count: 3 }); // Returns: { mood: 'excited', suggestions: ['🎉', '🎊', '🥳'] }
npm install @tpmjs/emoji-magic
MIT
Downloads/month
132
GitHub Stars
0
Quality Score