Skip to main content

fetchFromCDN

Callable


  • This function will fetch emojibase-data JSON files from our CDN, parse them, and return the response. It requires a file path relative to the emojibase-data package as the 1st argument and an optional object of options as the 2rd argument.

    import { fetchFromCDN } from 'emojibase';
    await fetchFromCDN('ja/compact.json', { version: '2.1.3' });

    Type parameters

    • T