Validark / unicode-tr51-emoji

Emoji data extracted from Unicode Technical Report #51 v1.0, v2.0, and v3.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unicode-tr51-emoji

Build Status NPM Version License

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 (and API compatible) with Mathias Bynens's unicode-tr51.

Installation

Via npm:

npm install unicode-tr51-emoji

In Node.js:

var codepoints = require('unicode-tr51-emoji/code-points');
var symbols = require('unicode-tr51-emoji/symbols');

By default it returns the latest version (v3.0), you can access particular versions directly using:

// v1.0 (http://www.unicode.org/Public/emoji/1.0/emoji-data.txt)
var codepoints = require('unicode-tr51-emoji/v1.0/code-points');
var symbols = require('unicode-tr51-emoji/v1.0/symbols');

// v2.0 (http://www.unicode.org/Public/emoji/2.0/emoji-data.txt)
var codepoints = require('unicode-tr51-emoji/v2.0/code-points');
var symbols = require('unicode-tr51-emoji/v2.0/symbols');

// v3.0 (http://www.unicode.org/Public/emoji/3.0/emoji-data.txt)
var codepoints = require('unicode-tr51-emoji/v3.0/code-points');
var symbols = require('unicode-tr51-emoji/v3.0/symbols');

About

Emoji data extracted from Unicode Technical Report #51 v1.0, v2.0, and v3.0

License:MIT License


Languages

Language:JavaScript 100.0%