What is emojibase?
Emojibase is a comprehensive emoji library that provides a wide range of emoji data and utilities. It includes datasets for emoji metadata, shortcodes, and localized names, as well as utilities for parsing and rendering emojis.
What are emojibase's main functionalities?
Emoji Metadata
Fetches comprehensive metadata for all emojis, including names, shortcodes, and Unicode points.
const { getEmojiData } = require('emojibase');
getEmojiData().then(data => {
console.log(data);
});
Localized Emoji Names
Fetches emoji data with localized names for a specified language.
const { getEmojiData } = require('emojibase');
getEmojiData('en').then(data => {
console.log(data);
});
Emoji Shortcodes
Fetches a list of emoji shortcodes for a specified language.
const { getShortcodes } = require('emojibase');
getShortcodes('en').then(shortcodes => {
console.log(shortcodes);
});
Emoji Parsing
Parses a string and replaces emoji shortcodes with actual emoji characters.
const { parse } = require('emojibase');
const text = 'I love pizza 🍕!';
const parsedText = parse(text);
console.log(parsedText);
Other packages similar to emojibase
emoji-mart
Emoji Mart is a Slack-like customizable emoji picker component for React. It provides a user-friendly interface for selecting emojis and supports custom emoji sets. Unlike Emojibase, which focuses on providing emoji data and utilities, Emoji Mart is more about the user interface for emoji selection.
node-emoji
Node Emoji is a simple library for using emojis in Node.js. It allows you to easily get emoji characters by name and replace emoji shortcodes in strings. While it offers some similar functionalities to Emojibase, it is less comprehensive in terms of metadata and localization.
emojione
EmojiOne is a complete set of emoji images and a library for parsing and rendering emojis. It provides a rich set of emoji images and supports various platforms. Compared to Emojibase, EmojiOne focuses more on the visual representation of emojis.
Emojibase
Emojibase, the ultimate emoji database.
A collection of lightweight, up-to-date, pre-generated, specification compliant, localized emoji
JSON datasets, regex patterns, and more.
Features
Documentation
https://emojibase.dev