Skip to content

lishali12345/unicode-tr51

 
 

Repository files navigation

unicode-tr51 Build status Code coverage status Dependency status

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.

Installation

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');

Author

twitter/mathias
Mathias Bynens

License

unicode-tr51 is available under the MIT license.

About

Emoji data extracted from Unicode Technical Report #51.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%