emojiify-number
v1.1.2
Published
Convert numbers or strings to emoji digits (like 2️⃣0️⃣2️⃣5️⃣)
Maintainers
Readme
emojiify-number
Convert numbers and text to emoji digit representations! 🔢
Created by Pravin Jadhav
Installation
# Local installation
npm install emojiify-number
# Global installation (for CLI usage)
npm install -g emojiify-numberUsage
As a module
const emojiify = require("emojiify-number");
// Basic usage (with spacing by default)
console.log(emojiify(123)); // Output: 1️⃣ 2️⃣ 3️⃣
// Without spacing
console.log(emojiify(123, { spacing: false })); // Output: 1️⃣2️⃣3️⃣
// Works with text too
console.log(emojiify("Hello 2023!")); // Output: Hello 2️⃣ 0️⃣ 2️⃣ 3️⃣!As a CLI tool
# Basic usage (with spacing by default)
emojiify-number 123 # Output: 1️⃣ 2️⃣ 3️⃣
# Without spacing
emojiify-number --no-spacing 123 # Output: 1️⃣2️⃣3️⃣
# Works with text too
emojiify-number "Hello 2023!" # Output: Hello 2️⃣ 0️⃣ 2️⃣ 3️⃣!
# Show help
emojiify-number --helpFeatures
- Converts any number or text containing digits to emoji representation
- Works with any text - only the digits are converted
- Adds spacing between emoji digits for better readability
- Simple API with configuration options
- Command-line interface with helpful options
Author
License
MIT
