handle-emoji

0.0.5 • Public • Published

README

This tool includes some API to handle emoji.

Feature

  • No dependencies
  • Light weight

Install

npm install handle-emoji

Usage

API List

  • detect - tell if a char is emoji or not.
  • allUnicode - get unicode array that included in this module.

import

import { detect } from 'handle-emoji'
import emoji from 'handle-emoji'

detect

import { detect } from 'handle-emoji'

detect(str) // true or false

detect("This one includes emoji: 😄") // true
emoji.detect("This one includes emoji: 😄") // true

allUnicode

import { allUnicode } from 'handle-emoji'

allUnicode() // get all emoji unicode included in this module.

// result:
[
  [0x0080, 0x0081, 0x0082, ..., 0x2AF], // 0x0080 - 0x2AF
  ...
  [0x1F980, 0x1F981, ..., 0x1F9E0] // 0x1F980 - 0x1F981
]

emoji range

This tool include the following emojis:

Author Info

Readme

Keywords

Package Sidebar

Install

npm i handle-emoji

Weekly Downloads

5

Version

0.0.5

License

MIT

Unpacked Size

5.83 kB

Total Files

11

Last publish

Collaborators

  • taoquixote