emoji2png

0.0.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i emoji2png

Weekly Downloads

1

Version

0.0.7

License

MIT

Last publish

Collaborators

  • w01fgang