wemoji: Universal Emoji Database

1.0.1 · abandoned · verified Wed Apr 22

wemoji is a JavaScript library providing a universal emoji database, designed as a near drop-in replacement for `gemoji`. Currently at version `1.0.1`, the project appears to have an infrequent release cadence, with the last significant activity dating back to 2016. Its primary differentiators include a dataset reported to be superior to `gemoji`, and a comprehensive set of perfectly matched CSS and emoji picker assets for consistent visual display across various platforms (Apple, Google, Twitter styles). It is built upon the `emoji-data` project and aims to provide harmony between front-end and back-end emoji rendering, although its asset management relies on older tools like Bower and manual file copying.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to import `wemoji` using CommonJS and retrieve emoji data by both short name and Unicode character.

const wemoji = require('wemoji');

// Access emoji data by short name
const dragonEmoji = wemoji.name['dragon'];
console.log('Dragon Emoji Data:', dragonEmoji);
/*
Yields:
{
  emoji: '🐉',
  platforms: [ 'tw', 'a', 'g' ],
  description: 'DRAGON',
  name: 'dragon',
  css: 'dragon',
  category: 'animal'
}
*/

// Access emoji data by unicode character
const loveHotelEmoji = wemoji.unicode['🏩'];
console.log('Love Hotel Emoji Data:', loveHotelEmoji);
/*
Yields:
{
  emoji: '🏩',
  platforms: [ 'tw', 'a', 'g' ],
  description: 'LOVE HOTEL',
  name: 'love_hotel',
  css: 'love_hotel',
  category: 'travel'
}
*/

view raw JSON →