2.0.0 โ€ข Published 6 years ago

umoji v2.0.0

Weekly downloads
13
License
ISC
Repository
-
Last release
6 years ago

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