Repository
Current version released
5 years ago
Versions
DeMoji
Convert text-mojis to REAL emojis!!
DeMoji is a Deno package used to convert text emojis (β:)β or β:(β) to ACTUAL REAL emojis!! You can use it when (say) you want to automagically convert user text to emojis. It is a really small package but helpful at times.
Usage
import {emojiConv} from "https://x.nest.land/DeMoji@0.1.0/src/main.ts"
let text = "Hello World :)"
let expressed = emojiConv(text)
console.log(expressed)
// Hello World πThe package is on deno.land and nest.land, the import URLs are:
https://x.nest.land/DeMoji@0.1.0/src/main.ts
https://deno.land/x/demoji@0.1.1/mod.ts
API
function emojiConv(text: string, emojiJson?: Object)The main function. Takes in a string which is some text and an optional JSON object ({ emojiShorthand: emoji, ... }) that contains custom emojis to use, if that is the case. The underlying emojis.ts file will be updated often, so it is recommended to not use that right now.
Thanks.