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

node-emoji-nuxt

v1.2.1

Published

Friendly emoji lookups and parsing utilities for nuxt module. ๐Ÿ’–

Downloads

9

Readme

Emoji Nuxt Module

Friendly emoji lookups and parsing utilities for Node.js. ๐Ÿ’–

npm version npm downloads License Nuxt

Node Emoji Nuxt Module supporting v3

Quick Setup

  1. Add node-emoji-nuxt dependency to your project
npx nuxi@latest module add node-emoji-nuxt
  1. Add node-emoji-nuxt to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'node-emoji-nuxt'
  ]
})

Basic Usage

You can use the provided $emoji to access node-emoji-nuxt in template.

<template>
  <div>
    {{ $emoji.emojify("I :heart: :coffee:!") }}
  </div>
</template>

Composables

You can use the useEmoji,useEmojify and useUnemojify composable to access node-emoji-nuxt anywhere.

const emoji = useEmoji()
emoji.emojify("I :heart: :coffee:!") // 'I โค๏ธ โ˜•๏ธ!'
// or use the useEmojify composable

emoji.unemojify('The ๐Ÿฆ„ is a fictitious animal.') // 'The :unicorn: is a fictitious animal.'
// or use the useUnemojify composable

API

emoji.emojify(input, options?)

Parse all markdown-encoded emojis in a string.

Parameters:

  1. input (string): The input string containing the markdown-encoding emojis.
  2. options (optional):
    • fallback (string; default: ""): The string to fallback to if an emoji was not found.
    • format (() => (emoji: string, part: string, string: string) => string; default: value => value): Add a middleware layer to modify each matched emoji after parsing.
const emoji = useEmoji()

console.log(emoji.emojify('The :unicorn: is a fictitious animal.'))
// 'The ๐Ÿฆ„ is a fictitious animal.'

emoji.find(emoji)

Get the name and character of an emoji.

Parameters:

  1. emoji (string): The emoji to get the data of.
const emoji = useEmoji()

console.log(emoji.find('๐Ÿฆ„'))
// { name: 'unicorn', emoji: '๐Ÿฆ„' }

emoji.get(name)

Get an emoji from an emoji name.

Parameters:

  1. name (string): The name of the emoji to get.
const emoji = useEmoji()

console.log(emoji.get('unicorn'))
// '๐Ÿฆ„'

emoji.has(emoji)

Check if this library supports a specific emoji.

Parameters:

  1. emoji (string): The emoji to check.
const emoji = useEmoji()

console.log(emoji.has('๐Ÿฆ„'))
// true

emoji.random()

Get a random emoji.

const emoji = useEmoji()

console.log(emoji.random())
// { name: 'unicorn', emoji: '๐Ÿฆ„' }

emoji.replace(input, replacement)

Replace the emojis in a string.

Parameters:

  • input (string): The input string.
  • replacement (string | (emoji: string, index: number, string: string) => string): The character to replace the emoji with. Can be either a string or a callback that returns a string.
const emoji = useEmoji()

console.log(emoji.replace('The ๐Ÿฆ„ is a fictitious animal.', 'unicorn'))
// 'The unicorn is a fictitious animal.'

emoji.search(keyword)

Search for emojis containing the provided name in their name.

Parameters:

  1. keyword (string): The keyword to search for.
const emoji = useEmoji()

console.log(emoji.search('honey'))
// [ { name: 'honeybee', emoji: '๐Ÿ' }, { name: 'honey_pot', emoji: '๐Ÿฏ' } ]

emoji.strip(input, options?)

Remove all of the emojis from a string.

Parameters:

  1. input (string): The input string to strip the emojis from.

  2. options (optional):

    • preserveSpaces (boolean): Whether to keep the extra space after a stripped emoji.
const emoji = useEmoji()

console.log(emoji.strip('๐Ÿฆ„ The unicorn is a fictitious animal.'))
// 'The unicorn is a fictitious animal.'

console.log(
  emoji.strip('๐Ÿฆ„ The unicorn is a fictitious animal.', {
    preserveSpaces: true,
  }),
)
// ' The unicorn is a fictitious animal.'

emoji.unemojify(input)

Convert all emojis in a string to their markdown-encoded counterparts.

Parameters:

  1. input (string): The input string containing the emojis.
const emoji = useEmoji()

console.log(emoji.unemojify('The ๐Ÿฆ„ is a fictitious animal.'))
// 'The :unicorn: is a fictitious animal.'

emoji.which(emoji, options?)

Get an emoji name from an emoji.

Parameters:

  1. emoji (string): The emoji to get the name of.
  2. options (optional):
    • markdown (boolean; default: false): Whether to return a ":emoji:" string instead of "emoji"
const emoji = useEmoji()

console.log(emoji.which('๐Ÿฆ„'))
// 'unicorn'

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release