mf-emotes
v1.0.0
Published
A meme based emoticon standard.
Downloads
6
Readme
dem-feels
A meme based emoticon standard.
example
const demFeels = require('dem-feels');
demFeels('hello world! feelsgd');
// => hello world! <img src="https://cdn.rawgit.com/CreaturePhil/dem-feels/master/emotes/feelsgd.png" title="feelsgd" width="50" height="50" />'
installation
$ npm install dem-feels
emotes
Emote | Name | Description --------- | -------- | --------------- | feelsgd | Feels Good Man | feelsbd | Feels Bad Man | feelsmd | Feels Mad Man | feelsrs | Feels Serious Man | feelsok | Feels Okay Man | feelsnv | Feels Nervous Man | feelsgn | Feels Gun Man | feelsrb | Feels Robber Man | feelsdd | Feels Dead Man | feelspn | Feels Pain Man | feelshp | Feels Hope Man | feelco | Feels Cool Man | feelscr | Feels Crazy Man | feelstr | Feels Tired Man | feelssc | Feels Scare Man | feelscop | Feels Cop Man | feelsnerd | Feels Nerd Man | feelsfdra | Feels Fedora Man | feelsrg | Feels Rage Man | feelspink | Feels Pink Man | feelsjig | Feels Jiggle Man | xaa | Exaggerated Laughing Face | oshet | Oh shit, you are screw! Shock Face | niglol | Hysterical Laughing Face | wtfman | What the fuck man?! | FacePalm | Palm to Face | hmmface | Hmm... thinking face | yesface | Yes face | noface | No Face | yayface | Yay Face
documentation
demFeels(message)
Parses the message with dem feels. Default maximum count of parsing amount of
emotes is 5
.
demfeels.extendEmotes(newEmotes)
Add new emotes to the default list of emotes. newEmotes is an object.
Example:
demFeels.extendEmotes({
'feelsnew': 'feelsnew.png'
});
demFeels.getEmotes()
Get an object of emotes. For example: {'feelsgd': 'https://cdn.rawgit.com/CreaturePhil/dem-feels/master/feelsgd.png'}
demFeels.setMaxCount(count)
Set the maximum number of emotes to parse. Defaults to 5. For example, limiting it to 1 will only parse one emote:
demFeels.setMaxCount(1);
demFeels('feelsgd feelsgd');
// => <img src="https://cdn.rawgit.com/CreaturePhil/dem-feels/master/emotes/feelsgd.png" title="feelsgd" width="50" height="50" /> feelsgd'
But setting it to 2 will parse two emotes:
demFeels.setMaxCount(2);
demFeels('feelsgd feelsgd');
// => <img src="https://cdn.rawgit.com/CreaturePhil/dem-feels/master/emotes/feelsgd.png" title="feelsgd" width="50" height="50" /> <img src="https://cdn.rawgit.com/CreaturePhil/dem-feels/master/emotes/feelsgd.png" title="feelsgd" width="50" height="50" />'