Skip to content

Tao-Quixote/handle-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

Handle emojis in EcmaScript strings. πŸŽ‰

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published