1 | # Emojibase Data
|
2 |
|
3 | [![Build Status](https://github.com/milesj/emojibase/workflows/Build/badge.svg)](https://github.com/milesj/emojibase/actions?query=branch%3Amaster)
|
4 | [![npm version](https://badge.fury.io/js/emojibase-data.svg)](https://www.npmjs.com/package/emojibase-data)
|
5 | [![npm deps](https://david-dm.org/milesj/emojibase.svg?path=packages/data)](https://www.npmjs.com/package/emojibase-data)
|
6 | [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/emojibase-data/badge?style=rounded)](https://www.jsdelivr.com/package/npm/emojibase-data)
|
7 |
|
8 | Install the package.
|
9 |
|
10 | ```
|
11 | yarn add emojibase-data
|
12 | ```
|
13 |
|
14 | Import and use the localized JSON dataset.
|
15 |
|
16 | ```ts
|
17 | import data from 'emojibase-data/en/data.json';
|
18 | ```
|
19 |
|
20 | Or fetch the dataset from our CDN.
|
21 |
|
22 | ```ts
|
23 | import { fetchFromCDN } from 'emojibase';
|
24 |
|
25 | fetchFromCDN('en/data.json').then(data => data);
|
26 | ```
|
27 |
|
28 | Please refer to the [official documentation](https://github.com/milesj/emojibase) for more
|
29 | information.
|