0.0.5 • Published 6 years ago

handle-emoji v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago