πA lib convert emoji unicode to Surrogate pairs
u can use with npm
npm install umoji --save
- 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