1.0.0 • Published 8 years ago

mf-emotes v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

dem-feels

A meme based emoticon standard.

Build Status Dependency Status devDependency Status

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

EmoteNameDescription
feelsgdfeelsgdFeels Good Man
feelsbdfeelsbdFeels Bad Man
feelsmdfeelsmdFeels Mad Man
feelsrsfeelsrsFeels Serious Man
feelsokfeelsokFeels Okay Man
feelsnvfeelsnvFeels Nervous Man
feelsgnfeelsgnFeels Gun Man
feelsrbfeelsrbFeels Robber Man
feelsddfeelsddFeels Dead Man
feelspnfeelspnFeels Pain Man
feelshpfeelshpFeels Hope Man
feelscofeelcoFeels Cool Man
feelscrfeelscrFeels Crazy Man
feelstrfeelstrFeels Tired Man
feelsscfeelsscFeels Scare Man
feelscopfeelscopFeels Cop Man
feelsnerdfeelsnerdFeels Nerd Man
feelsfdrafeelsfdraFeels Fedora Man
feelsrgfeelsrgFeels Rage Man
feelspinkfeelspinkFeels Pink Man
feelsjigfeelsjigFeels Jiggle Man
xaaxaaExaggerated Laughing Face
oshetoshetOh shit, you are screw! Shock Face
niglolniglolHysterical Laughing Face
wtfmanwtfmanWhat the fuck man?!
FacePalmFacePalmPalm to Face
hmmfacehmmfaceHmm... thinking face
yesfaceyesfaceYes face
nofacenofaceNo Face
yayfaceyayfaceYay 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" />'

license

MIT