Raw data for Unicode Emoji π
The data are generated using the Unicode Emoji, Version 17.0 from Unicode.
You can learn more about emojis at Emojipedia or find some implementation details and trivia on the Wiki.
Check the generated CSV file.
Or just take a look at what you can achieve using this package.
npm install unicode-emojiThis package is ESM-only. The recommended way to use it is with a bundler (e.g. webpack, esbuild, ...), which handles module resolution for you.
Simply import it wherever you need it:
import { ... } from 'unicode-emoji';If you are targeting ESM, you can use the import syntax:
import { ... } from 'unicode-emoji';If you are targeting CommonJS, you don't have access to static import, so you'll need to use a dynamic import from an async function.
async function importUnicodeEmoji() {
const unicodeEmoji = await import('unicode-emoji');
// ... do something
}
importUnicodeEmoji().catch((error) => console.error(error));If you are not using a bundler, you'll need to expose the /node_modules/unicode-emoji/index.js file so it is accessible from the web, then import it in your HTML using a module script.
The simplest approach is to import the file directly:
<script type="module">
import { ... } from '/node_modules/unicode-emoji/index.js';
</script>However, if you plan to re-use or share the package in other modules, I recommend using an Import Map, so that you can directly import the package using its name, just as you would with a bundler:
<script type="importmap">
{
"imports": {
"unicode-emoji": "/node_modules/unicode-emoji/index.js"
}
}
</script>
<script type="module">
import { ... } from 'unicode-emoji';
</script>import { getEmojis } from 'unicode-emoji';
getEmojis();[
{
"emoji": "π", // Emoji without skin tone variation
"description": "grinning face",
"version": "1.0",
"keywords": ["face", "grin", "grinning face"],
"category": "face-emotion",
"group": "smileys-emotion",
"subgroup": "face-smiling"
},
{
"emoji": "π", // Emoji with skin tone variations
"description": "waving hand",
"version": "0.6",
"keywords": ["hand", "wave", "waving"],
"category": "face-emotion",
"group": "people-body",
"subgroup": "hand-fingers-open",
"variations": [
{
"emoji": "ππ»",
"description": "waving hand: light skin tone",
"version": "1.0"
},
{
"emoji": "ππΌ",
"description": "waving hand: medium-light skin tone",
"version": "1.0"
},
// ...
]
},
// ...
]import { getComponents } from 'unicode-emoji';
getComponents();{
"skin-tone": [
{
"emoji": "π»",
"description": "light skin tone",
"version": "1.0"
},
{
"emoji": "πΌ",
"description": "medium-light skin tone",
"version": "1.0"
},
// ...
],
"hair-style": [
{
"emoji": "π¦°",
"description": "red hair",
"version": "11.0"
},
{
"emoji": "π¦±",
"description": "curly hair",
"version": "11.0"
},
// ...
]
}You can group & filter emojis by category, group, subgroup or version
Here is an example:
- grouped by category
- without emojis from the flags category
- without emojis from the 0.6 & 0.7 versions
- without emojis from all versions above version 12.0 (does not exclude emojis from the version 12.0)
import { getEmojis, getEmojisGroupedBy } from 'unicode-emoji';
const groupBy = 'category';
const omitWhere = { versionAbove: '12.0', category: ['flags'], version: ['0.6', '0.7'] };
// Only omitting
getEmojis(omitWhere);
// Only grouping
getEmojisGroupedBy(groupBy);
// Grouping and omitting
getEmojisGroupedBy(groupBy, omitWhere);Keep in mind that:
const omitWhere = { versionAbove: '14.0' };Is equivalent to:
const omitWhere = { version: ['15.0', '15.1', '16.0', '17.0'] };But you should always use the first one, as it will be future-proof for when new versions of unicode-emoji are released.
So that updating your dependencies will not opt you into newer emojis that are not yet supported on every platform.
While complete data are available on GitHub:
unicode-emoji.csvprovides complete flat dataunicode-emoji.jsonprovides complete hierarchical data
Only the stripped-down unicode-emoji.js file is bundled within the NPM package to greatly reduce its size