FunctionsfetchShortcodesfetchShortcodes CallablefetchShortcodes(locale: Locale, preset: ShortcodePreset, options?: FetchFromCDNOptions): Promise<ShortcodesDataset>Fetches and returns localized shortcodes for the defined preset from our CDN. The response is a mapping of emoji hexcodes to shortcodes (either a string or array of strings). Uses fetchFromCDN under the hood. import { fetchShortcodes } from 'emojibase';await fetchShortcodes('ja', 'cldr', { version: '2.1.3' });
Fetches and returns localized shortcodes for the defined preset from our CDN. The response is a mapping of emoji hexcodes to shortcodes (either a string or array of strings). Uses
fetchFromCDN
under the hood.