@nitaiapiiro/rand_emoji
v0.0.1-security
Published
A simple package that displays different emojis for numbers 1-10
Maintainers
Readme
rand_emoji
A simple and fun Node.js package that displays different emojis for numbers 1-10.
Installation
npm install -g rand_emojiOr use it locally in your project:
npm install rand_emojiUsage
As a CLI tool
After global installation, run:
rand_emojiThe program will prompt you to enter a number between 1 and 10, and it will display a corresponding emoji.
As a module
const { getEmoji, printEmojiForNumber } = require('rand_emoji');
// Get emoji for a number
const emoji = getEmoji(5);
console.log(emoji); // 🎵
// Print number with emoji
printEmojiForNumber(7); // 7: ⚡Emoji Map
- 1: 🎯
- 2: 🌟
- 3: 🚀
- 4: 🎨
- 5: 🎵
- 6: 🌈
- 7: ⚡
- 8: 🔥
- 9: 💎
- 10: 🏆
License
MIT
