simple kaomoji support for node.js projects
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. 🚢
You're now ready to use kaomoji in your node projects! Awesome!
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
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);
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!