umoji
v2.0.0
Published
emoji to unicode
Downloads
36
Readme
umoji
😀A lib convert emoji unicode to Surrogate pairs
u can use with npm
npm install umoji --save
method
- emojiToUnicode
emoji to Surrogate pairs unicode
umoji.emojiToUnicode('😀😀😀😀😀sdksk');// return '\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00sdks'
- toSurrogatePairs
Hexadecimal and decimal number to unicode
umoji.toSurrogatePairs(128513)// return '\ud83d\ude01'
umoji.toSurrogatePairs(0x1F601)// return '\ud83d\ude01'
- fromcodepoint
a static method like es6 fromcodepoint, fromcodepoint() then use String.fromCodePoint(),
fromcodepoint()
String.fromCodePoint(128513)// return '\ud83d\ude01'
👩👦👦 👩👧👧 👨👦 👨👧 👨👧👦 👨👦👦 👨👧👧 A lot of people star this project