dem-feels
A meme based emoticon standard.
666
| Install | |
|---|---|
npm install dem-feels |
|
| Latest Version: | 1.8.1 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Dec 26, 2016 |
| Links: | npm |
Maintainer: creaturephil
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
Visit http://creaturephil.github.io/dem-feels to see the list of emotes.
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'
demFeels.setImageSize(size)
Set the size of the emotes' image. The default size is 50 pixels.
demFeels.setImageSize(40);
demFeels('hi feelsgd');
// => 'hi <img src="https://cdn.rawgit.com/CreaturePhil/dem-feels/master/emotes/feelsgd.png" title="feelsgd" width="40" height="40" />'
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
Related Packages
animated-fluent-emojis
Microsoft's animated Fluent emojis as one component. They play on load or hover,...
3,190
1
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.8.1 | ^2.1.7 | MIT | |
| 1.8.0 | ^2.1.7 | MIT | |
| 1.7.0 | MIT | ||
| 1.6.0 | MIT | ||
| 1.5.0 | MIT | ||
| 1.4.0 | MIT | ||
| 1.3.0 | MIT | ||
| 1.2.0 | MIT | ||
| 1.1.1 | MIT | ||
| 1.1.0 | MIT | ||
| 1.0.0 | MIT |