1.0.6 • Published 7 months ago

discord-emojis-parser v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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'
//   }
// ]
1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago