SkillAgentSearch skills...

Umoji

๐Ÿ˜„ A lib convert emoji unicode to Surrogate pairs

Install / Use

/learn @channg/Umoji
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center">umoji</center></h3> <p align="center"> <a href="https://www.npmjs.com/package/umoji"><img alt="npm" src="https://img.shields.io/npm/v/umoji.svg?style=flat-square"></a> </p>

๐Ÿ˜€A lib convert emoji unicode to Surrogate pairs

  • u can use with npm
npm install umoji --save
  • use cdn https://unpkg.com/umoji@2.0.0/dist/umoji.umd.js

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

Related Skills

View on GitHub
GitHub Stars67
CategoryDevelopment
Updated1y ago
Forks9

Languages

JavaScript

Security Score

70/100

Audited on Feb 19, 2025

No findings