Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cameronhunter/unicode-tr51-emoji
Emoji data extracted from Unicode Technical Report #51 v1.0 – v5.0
https://github.com/cameronhunter/unicode-tr51-emoji
emoji unicode unicode-tr51
Last synced: 11 days ago
JSON representation
Emoji data extracted from Unicode Technical Report #51 v1.0 – v5.0
- Host: GitHub
- URL: https://github.com/cameronhunter/unicode-tr51-emoji
- Owner: cameronhunter
- License: mit
- Created: 2016-01-20T07:33:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T19:22:55.000Z (over 7 years ago)
- Last Synced: 2024-10-12T07:16:07.052Z (27 days ago)
- Topics: emoji, unicode, unicode-tr51
- Language: JavaScript
- Homepage:
- Size: 347 KB
- Stars: 15
- Watchers: 4
- Forks: 3
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-typography - unicode-tr51-emoji - Emoji data extracted from Unicode Technical Report #51 v1.0 – v5.0. (JavaScript)
README
# unicode-tr51-emoji
[![Build Status](https://travis-ci.org/cameronhunter/unicode-tr51-emoji.svg?branch=master)](https://travis-ci.org/cameronhunter/unicode-tr51-emoji) [![NPM Version](https://img.shields.io/npm/v/unicode-tr51-emoji.svg)](https://npmjs.org/package/unicode-tr51-emoji) [![License](https://img.shields.io/npm/l/unicode-tr51-emoji.svg)](https://github.com/cameronhunter/unicode-tr51-emoji/blob/master/LICENSE.md)
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](https://github.com/mathiasbynens/unicode-tr51).
## Installation
Via [npm](https://www.npmjs.com/):
```bash
npm install unicode-tr51-emoji
```In [Node.js](https://nodejs.org/):
```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:
```js
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');
```