0.0.5 • Published 10 years ago

emoji-and-emoticons v0.0.5

Weekly downloads
16
License
-
Repository
github
Last release
10 years ago

##Emoji and Emoticons

This is a node module for emojify.js

install

npm install emoji-and-emoticons

##Emoji Cheat Sheet http://www.emoji-cheat-sheet.com

##Usage Download these (Emoji Images)https://github.com/hassankhan/emojify.js/tree/master/images and add it inside your project directory.

You can use it in your code like this,

var emojify     = require('emoji-and-emoticons');
var text        = "This is a string with :smile: and :)"; // string to emojify
var images_path = "/images/emoji" // path of the images folder
var style       = "width: 5%" //style for image
var emojified   = emojify(text, images_path, style);

You can also apply CSS for image instead of applying inline style

/*css*/
.emoji{
    width: 5%;
    height: auto;
    vertical-align: bottom;
}

##References https://github.com/hassankhan/emojify.js (Used in Client side)

https://www.npmjs.org/package/emoji-images (Works well with the Emoji cheat sheet, but emoticons such as ":), :D, :-)" were not working)

License

MIT

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago