node-kaomoji
v0.1.0
Published
simple kaomoji support for node.js projects
Downloads
5
Maintainers
Readme
node-kaomoji
simple kaomoji support for node.js projects
Installation
To install node-kaomoji
, you need node.js and npm.
Once you have that set-up, just run npm install --save node-kaomoji
in your project directory. :ship:
You're now ready to use kaomoji in your node projects! Awesome!
Usage
var kaomoji = require('node-kaomoji');
console.log(kaomoji.angry[0]); // returns the first angry kaomoji
console.log(kaomoji.lenny[3]); // returns the third lenny kaomoji
Categories
var kaomoji = require('node-kaomoji');
console.log(kaomoji.angry);
console.log(kaomoji.bears);
console.log(kaomoji.birds);
console.log(kaomoji.cats);
console.log(kaomoji.lenny);
console.log(kaomoji.dongers);
Adding new kaomoji
Kaomoji come from japaneseemoticons.net (Thanks a lot).
To update the list or add custom kaomoji, clone this repository and put them into lib/kaomoji.html
. (Or download another page from the website)
Then run npm run-script kaomojiparse
in the project directory or node kaomojiparse
in the lib directory.
This should generate the new kaomoji.json file and output Done.
.
That's all, you now have more kaomoji you can use!