Toolkit of emoji-related features created for chat applications.
- Install dependencies with
yarn install
. - Generate
emoji.json
file usingyarn generate
. - Run tests (
yarn test
) and/or performance check (yarn perf
).
- Run
yarn build
to create a JavaScript build of the emoji service. - Run
yarn link
to allow symlinking of the package. - Go to the project you want to use this library in and run
yarn link @zoovi/emoji
.
- Import the service using
import emoji from '@zoovi/emoji';
- Run
await emoji.initialize();
to initialize all service features (download minified emoji.json file). - Use any of the service features listed below.
- Dynamic import of the emoji data (
emoji.initialize()
). - Parsing emoji symbols into emoji (
emoji.parseText(':D') -> 😄
). - Parsing emoji short names into emoji (
emoji.parseText(':smile:') -> 😄
).
- Emoji search feature.
- Skin tone customization.
- Accessing specified emoji data.