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:
- Emoticons ( 1F601 - 1F64F )
- Dingbats ( 2702 - 27B0 )
- Transport and map symbols ( 1F680 - 1F6C0 )
- Enclosed characters ( 24C2 - 1F251 )
- Uncategorized
- Additional emoticons ( 1F600 - 1F636 )
- Additional transport and map symbols ( 1F681 - 1F6C5 )
- Other additional symbols ( 1F30D - 1F567 )
- Emoji Versions, V11.0
Author Info
- GitHub
- Email: web.taox@gmail.com