❀Notebook Page Margin

    mojibaka

    1.0.2Β β€’Β PublicΒ β€’Β Published

    ✨ Mojibaka

    npm mojibaka Build Status codecov

    A browser emoji support detection toolkit

    πŸ”¨ Tools

    πŸ›  detect (default)

    Returns an object containing information about the current browser's emoji support, including;

    • version: The return value of detectVersion
    • fitzpatrick: The return value of detectFitzpatrick (if version is > 0)
    • genders: The return value of detectGenders (if version is >= 7.0)
    • scale: The return value of detectScale (if version is > 0)

    Useful for determining broad emoji support

    πŸ”Ž detectVersion

    Returns the maximum Unicode emoji version support was detected for, as a float.

    πŸ•΅πŸ½ detectFitzpatrick

    Returns a Boolean denoting whether the browser understands Fitzpatrick Skin Tone Modifiers (a Unicode 7.0 feature)

    πŸ•΅πŸ»β€β™€οΈ detectGenders

    Returns a Boolean denoting whether the browser understands zero-width joiner gender modifiers (a Unicode 8.0 feature)

    πŸ“ detectScale

    Returns the size of the emoji compared to text, as a float, rounded to one decimal place. Useful for compensating for size differences between different browser implementations.

    ⚠️ Caveats

    • This doesn't yet test for Unicode 10.0 compatibility
    • No version test is conclusive; individual character support still varies by platform
    • Consider carefully what you're using Mojibaka's output for. The less work you do to handle Emoji yourself within the browser, the better!

    Install

    npm i mojibaka

    DownloadsWeekly Downloads

    86

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • ticky