emoji-platform-data
v0.15.0
Published
Static export of platform-specific metadata for unicode emojis. ๐๏ธ
Downloads
2,731
Readme
Usage
npm i emoji-platform-dataimport { byEmoji, byTitle } from "emoji-platform-data";
console.log(byEmoji["๐"]);
console.log(byTitle.SparklingHeart);
/*
{
android: { "keywords": ["bday", "birthday", "bling", ...] },
discord: { "name": "sparkling_heart", ... },
emoji: "๐",
emojiMart: { "id": "sparkling_heart", ... },
emojipedia: { "currentCldrName": "Sparkling Heart", ... },
fluemoji: { "cldr": "sparkling heart", ... },
gemoji: { "description": "sparkling heart", ... },
gnome: { "name": "sparkling heart", ... },
joypixels: { "name": "sparkling_heart", ... },
macos: { "appleName": "heart with stars", ... },
slack: { "name": "sparkling_heart", ... },
twemoji: { "description": "Sparkling heart", ... },
wechat: { "keywords": ["twinkle", "twinkling", "้ชไบฎ็ๅฟ", ...], ... },
windows: { "name": "sparkling heart", ... },
...
}
*/byEmojitakes a glyph as any platform writes it, with or without its U+FE0F:byEmoji["โ๏ธ"]andbyEmoji["โ"]are the same entry.byTitletakes a PascalCase Emojipedia title, andemoji-platform-data/byTitleexports each one separately for smaller bundles.
Each entry is an EmojiPlatformData combining data from:
- Android (Gboard) (
android) - Discord (
discord) - emoji-mart (
emojiMart) - Emojipedia (
emojipedia) - Fluent UI / Windows (
fluemoji) - Gemoji (
gemoji) - GNOME (
gnome) - JoyPixels / Zoom (
joypixels) - macOS (
macos) - Slack (
slack) - Twemoji (
twemoji) - WeChat (
wechat) - Windows (
windows)
Each source is also published on its own as an @emoji-platform-data/* package, listed in the repository README.
This package is only static JSON and types, with no runtime dependencies.
