npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-emoji-to-icon

v1.1.8

Published

Universal emoji to Lucide icon converter for Vue 3

Readme

vue-emoji-to-icon

Universal emoji to Lucide icon converter for Vue 3. Automatically converts emojis and Korean keywords to beautiful Lucide icons.

✨ Features

  • 🔄 140+ Emoji Mappings: Covers UI, TRPG, social, nature, food, and more
  • 🇰🇷 Korean Keyword Support: Use Korean words like '집' (home), '사람' (user)
  • 🎨 Fully Customizable: Size, color, stroke width, and more
  • 🔌 Fallback System: Shows original emoji if no mapping exists
  • 🌳 Tree-shakeable: Only bundles icons you actually use
  • 🎯 Type Safe: Full TypeScript support
  • 🪶 Lightweight: Minimal bundle size impact

📦 Installation

npm install vue-emoji-to-icon

🚀 Usage

Global Installation (Plugin)

// main.js
import { createApp } from 'vue'
import App from './App.vue'
import VueEmojiToIcon from 'vue-emoji-to-icon'

const app = createApp(App)
app.use(VueEmojiToIcon)
app.mount('#app')

Component Import

<template>
  <div>
    <!-- Basic usage -->
    <EmojiToIcon emoji="🏠" />
    <EmojiToIcon emoji="👤" />
    <EmojiToIcon emoji="❤️" />
    
    <!-- With customization -->
    <EmojiToIcon 
      emoji="⭐" 
      :size="32" 
      color="gold" 
      :stroke-width="3" 
    />
    
    <!-- Korean keywords -->
    <EmojiToIcon emoji="집" />
    <EmojiToIcon emoji="사람" />
    <EmojiToIcon emoji="하트" />
    
    <!-- Fallback for unmapped emojis -->
    <EmojiToIcon emoji="🦄" :show-fallback="true" />
  </div>
</template>

<script>
import { EmojiToIcon } from 'vue-emoji-to-icon'

export default {
  components: {
    EmojiToIcon
  }
}
</script>

🎛️ Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | emoji | String | (required) | Emoji or Korean keyword to convert | | size | Number | 24 | Icon size in pixels | | color | String | 'currentColor' | Icon color | | fill | String | 'none' | Fill color | | strokeWidth | Number | 2 | Stroke width | | showFallback | Boolean | true | Show original emoji if no mapping | | iconClass | String | '' | CSS class for icon | | fallbackClass | String | 'emoji-fallback' | CSS class for fallback emoji |

📚 Emoji Mappings

UI & Navigation

  • 🏠 → Home
  • 👤 → User
  • ⭐ → Star
  • 🔍 → Search
  • 💬 → MessageCircle
  • ⚙️ → Settings
  • ☰ → Menu
  • ❌ → X

TRPG & Gaming

  • 🎲 → Dice5
  • ⚔️ → Sword
  • 🛡️ → Shield
  • 🏹 → BowArrow
  • 🎯 → Target
  • 📜 → Scroll
  • ⚀⚁⚂⚃⚄⚅ → Dice1-6

Social & Communication

  • ❤️ → Heart
  • 👍 → ThumbsUp
  • 👎 → ThumbsDown
  • 📤 → Send
  • 👀 → Eye
  • 🔗 → Link

Nature & Weather

  • ☀️ → Sun
  • 🌙 → Moon
  • ☁️ → Cloud
  • 🔥 → Flame
  • ❄️ → Snowflake

Korean Keywords

  • 집 → Home
  • 사람 → User
  • 하트 → Heart
  • 별 → Star
  • 검색 → Search
  • 메시지 → MessageCircle
  • 설정 → Settings

[See full mapping list in source code]

💡 Why Use This?

Before (Raw Emojis)

<span class="icon">🏠</span>  <!-- Inconsistent rendering -->
<span class="icon">👤</span>  <!-- Different styles -->
<span class="icon">⭐</span>  <!-- Platform-dependent -->

After (EmojiToIcon)

<EmojiToIcon emoji="🏠" :size="16" />  <!-- Consistent Lucide icons -->
<EmojiToIcon emoji="👤" :size="16" />  <!-- Unified design language -->
<EmojiToIcon emoji="⭐" :size="16" />  <!-- Beautiful & customizable -->

🎨 Advanced Usage

Custom Styling

<template>
  <EmojiToIcon 
    emoji="⚔️"
    :size="48"
    color="red"
    :stroke-width="3"
    icon-class="my-custom-icon"
  />
</template>

<style>
.my-custom-icon {
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.2s;
}
.my-custom-icon:hover {
  transform: scale(1.1);
}
</style>

Dynamic Emoji Selection

<template>
  <div>
    <EmojiToIcon 
      v-for="emoji in emojiList" 
      :key="emoji"
      :emoji="emoji" 
      :size="24"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      emojiList: ['🏠', '👤', '⭐', '🔍', '💬']
    }
  }
}
</script>

📝 License

MIT

🤝 Contributing

Issues and PRs are welcome!

🔗 Related

🙏 Credits

Built with Lucide Icons