@jukben/emoji-search
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.1 • Public • Published

    @jukben/emoji-search

    Exposes search function which returns arrays of related emojis:

    type Emoji = {
        category: string
        char: string,
        fitzpatrick_scale: boolean
        keywords: Array<string>,
        name: string,
    }
     
    (string) => Array<Emoji>

    Based on emojilib and wonderful match-sorter.

    Install

    npm i --save-dev @jukben/emoji-search

    Usage

    import search from "@jukben/emoji-search"
     
    search("beer") // [{"keywords":["beer", "relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"🍺","fitzpatrick_scale":false,"category":"food_and_drink", name: "beer"},{"keywords":["beers", "relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"🍻","fitzpatrick_scale":false,"category":"food_and_drink", name: beers"},{"keywords":["milk_glass", "beverage","drink","cow"],"char":"🥛","fitzpatrick_scale":false,"category":"food_and_drink", name: "milk_glass"},...
     
    search("beer")[0].char // 🍺

    License

    MIT

    Keywords

    Install

    npm i @jukben/emoji-search

    DownloadsWeekly Downloads

    1,604

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    4.55 kB

    Total Files

    7

    Last publish

    Collaborators

    • jukben