unicode-tr51 contains data extracted from the emoji-data.txt
file that is part of Unicode Technical Report #51.
This package enables an easy way of getting the list of all emoji code points in your JavaScript build scripts.
Via npm:
npm install unicode-tr51
In Node.js:
const properties = require('unicode-tr51');
// → [ 'Emoji', 'Emoji_Component', Emoji_Modifier', 'Emoji_Modifier_Base', 'Emoji_Presentation' ]
const Emoji = require('unicode-tr51/Emoji.js');
const Emoji_Component = require('unicode-tr51/Emoji_Component.js');
const Emoji_Modifier = require('unicode-tr51/Emoji_Modifier.js');
const Emoji_Modifier_Base = require('unicode-tr51/Emoji_Modifier_Base.js');
const Emoji_Presentation = require('unicode-tr51/Emoji_Presentation.js');
// A list of all emoji sequences is available as an array of strings:
const sequences = require('unicode-tr51/sequences.js');
// Note that the sequence properties (e.g. `Emoji_Flag_Sequence`) aren’t (yet) exposed individually.
To get the UTR51 version the data was based on:
const version = require('unicode-tr51/emoji-version.js');
Mathias Bynens |
unicode-tr51 is available under the MIT license.