README
Text Emoji Parser
Simple JavaScript library to parse emojis from the given text. This package is based on twemoji-parser.
Example
const { parse } = require("@devsnowflake/text-emoji-parser");
const entities = parse("Hello ๐ I ๐งก Emojis ๐ค");
console.log(entities);
/*
[
{
indices: [ 6, 8 ],
text: '๐',
type: 'emoji',
unicode: '1f600'
},
{
indices: [ 11, 13 ],
text: '๐งก',
type: 'emoji',
unicode: '1f9e1'
},
{
indices: [ 21, 23 ],
text: '๐ค',
type: 'emoji',
unicode: '1f917'
}
]
*/