emoji2png
v0.0.7
Published
Converts unicode emoji in html with png images
Downloads
4
Readme
Converts unicode emoji to html tags with png images
Port of jQuery plugin https://github.com/rodrigopolo/jqueryemoji
Why
The emoji are so popular, but unfortunately on Windows they looking really ugly and on Linux they don't have color. But now you can write text using your lovely emoji!
Usage
Install it npm i emoji2png -S
or yarn add emoji2png
Use it:
const Emoji = require('emoji2png');
const path = '/images/';
const emoji2png = new Emoji(path);
emoji2png.parse('Text 🙂 text');
// will return 'Text <img draggable="false" class="emoji" src="/images/1f642.png"> text'
You can get images from jQuery plugin repo