Provides utility functions for testing Emojibase data.
yarn add emojibase-test-utils --dev
// Or
npm install emojibase-test-utils --save-dev
Use loadEmojiData
to return an array of English emoji data.
import { loadEmojiData } from 'emojibase-test-utils';
loadEmojiData().forEach((emoji) => {
// Do something
});
Or use loadFlatEmojiData
to return a flat array of emoji data (skin modifications are moved to the
root).
import { loadFlatEmojiData } from 'emojibase-test-utils';