Emojize
High resolution, unicode (emoji) to html conversion utility
npm install emojize --save
var convert = emojizevar html =
Browser usage with Ender
ender add emojize
Note
Use of this library requires <meta charset='utf-8'>
encoding if used in a browser.
var convert = emojizedocumentinnerHTML =
Sprite vs Image
emojize
defaults to sprite based conversion which ultimately requires the developer to include the sprite/emoji.css
and upload the emoji.png
along side the file. You could otherwise include all images found in img/
and pass in flag to the second argument to emojize
var emo =emoemo/*** outputs:* 'Haay <img src="images/emojis/_1f61c.png">'*/
Examples
make buildmake exampleopen http://localhost:3000/example.jade
Sizing
Each emoji defaults to 64px
× 64px
which may not always be desired. Thus, consider the following practice. Example assumes LESS.
{}{}{}{}
Credits
Much thanks to Gemoji project for high resolution images and Apple Inc. for Artwork. See License
Happy Emojizing!