Socket
Socket
Sign inDemoInstall

mojibaka

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mojibaka

✨ Browser emoji support detection toolkit


Version published
Maintainers
1
Install size
445 kB
Created

Readme

Source

✨ 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!

Keywords

FAQs

Last updated on 15 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc