unicode-tr51-emoji
v2.2.1
Published
Emoji data parsed from Unicode Technical Report #51 v1.0 – v5.0
Downloads
33
Maintainers
Readme
unicode-tr51-emoji
This package enables an easy way of getting the list of all emoji symbols (in string or code point format) in your JavaScript build scripts. It is inspired by Mathias Bynens's unicode-tr51.
Installation
Via npm:
npm install unicode-tr51-emoji
In Node.js:
const tr51 = require('unicode-tr51-emoji');
const codepoints = require('unicode-tr51-emoji/code-points');
const symbols = require('unicode-tr51-emoji/symbols');
const emojiData = require('unicode-tr51-emoji/emoji-data');
const emojiSequences = require('unicode-tr51-emoji/emoji-sequences');
const emojiVariationSequences = require('unicode-tr51-emoji/emoji-variation-sequences');
const emojiZWJSequences = require('unicode-tr51-emoji/emoji-zwj-sequences');
By default it returns the latest version (v5.0), you can access particular versions directly using:
const tr51 = require('unicode-tr51-emoji/v4.0');
const codepoints = require('unicode-tr51-emoji/v4.0/code-points');
const symbols = require('unicode-tr51-emoji/v4.0/symbols');
// v4.0 (http://www.unicode.org/Public/emoji/4.0/emoji-data.txt)
const emojiData = require('unicode-tr51-emoji/v4.0/emoji-data');
// v4.0 (http://www.unicode.org/Public/emoji/4.0/emoji-sequences.txt)
const emojiSequences = require('unicode-tr51-emoji/v4.0/emoji-sequences');
// v4.0 (http://www.unicode.org/Public/emoji/4.0/emoji-zwj-sequences.txt)
const emojiZWJSequences = require('unicode-tr51-emoji/v4.0/emoji-zwj-sequences');