Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amio/emoji.json

Just an emoji.json
https://github.com/amio/emoji.json

emoji json

Last synced: about 2 months ago
JSON representation

Just an emoji.json

Awesome Lists containing this project

README

        

# emoji.json [![npm](https://img.shields.io/npm/v/emoji.json.svg?style=flat-square)](https://www.npmjs.com/package/emoji.json)

Just an emoji.json.

Generated from [emoji-test.txt](https://unicode.org/Public/emoji/15.1/emoji-test.txt) with [this script](scripts/gen.js).

> NOTE: There are no Emoji versions 6.0-10.0 as a decision was made in 2017 to align emoji version numbers with their respective Unicode versions starting with version 11.0.

### Usage

**install with npm**

`npm install emoji.json` then:

```javascript
var emoji = require('emoji.json')
console.log(emoji[2])
// {
// codes: '1F604',
// char: '😄',
// name: 'grinning face with smiling eyes',
// category: 'Smileys & Emotion'
// }
```

if you care about file size:

```javascript
var emojiCompact = require('emoji.json/emoji-compact.json')
console.log(emojiCompact)
// ["😀","😁","😂","🤣" ...]
```

**fetch from web**

- https://unpkg.com/emoji.json/emoji.json
- https://unpkg.com/emoji.json/emoji-compact.json