tpmjs/packages/tools/emoji-magic/package.json
Ajax Davis 74811cc269 fix(emoji-magic): add defensive checks for missing required parameters
- Add validation in both textToEmoji and emojiMood to handle missing text parameter
- Return descriptive error instead of crashing with undefined error
- Bump to v0.2.1
2025-12-05 00:51:24 +10:00

35 lines
939 B
JSON

{
"name": "@tpmjs/emoji-magic",
"version": "0.2.1",
"description": "AI SDK tools for emoji-magic - convert text to emojis and back!",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"type-check": "tsc --noEmit"
},
"keywords": ["tpmjs-tool", "emoji", "ai", "text-processing"],
"tpmjs": {
"category": "text-analysis",
"frameworks": ["vercel-ai"],
"tools": [
{
"exportName": "textToEmoji",
"description": "Convert text into emoji representations - perfect for making messages more expressive!"
},
{
"exportName": "emojiMood",
"description": "Detect the mood/sentiment and suggest appropriate emojis for the text"
}
]
},
"dependencies": {
"ai": "6.0.0-beta.131",
"zod": "^4.1.13"
},
"devDependencies": {
"@tpmjs/tsconfig": "workspace:*",
"typescript": "^5.9.3"
}
}