Skip to content

a useful parser that extract discord-supported emojis from a text

Notifications You must be signed in to change notification settings

NervN/discord-emojis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-emojis-parser package

This package is used to parse discord unicode emojis from a text, with name, svg image

Example: Using Unicodes

const EmojiParser=require('discord-emojis-parser');

let text=`Hello world 🌍!
I'm alone here? 😭`

console.log(EmojiParser.parse(text))
// Output
// [
//   {
//     name: 'earth_africa',
//     svg: 'https://discord.com/assets/..svg',
//     unicode: '🌍',
//     representation: 'earth_africa'
//   },
//   {
//     name: 'sob',
//     svg: 'https://discord.com/assets/..svg',
//     unicode: '😭',
//     representation: 'sob'
//   }
// ]

Example: Using Represenatives

const EmojiParser=require('discord-emojis-parser');

let text=`Hello world :earth_africa:!
I'm alone here? :sob:`

console.log(EmojiParser.parse(text))
// Output
// [
//   {
//     name: 'earth_africa',
//     svg: 'https://discord.com/assets/....svg',
//     unicode: '🌍',
//     representation: 'earth_africa'
//   },
//   {
//     name: 'sob',
//     svg: 'https://discord.com/assets/....svg',
//     unicode: '😭',
//     representation: 'sob'
//   }
// ]

About

a useful parser that extract discord-supported emojis from a text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published