Skip to main content

fetchShortcodes

Callable


  • 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' });