Simple javascript library to generate random text emoticon. demo here.
Install with npm.
npm install emoticon.js
-
Import it with script tag in HTML.
insert the code below
between <body> and </body>
.<script src="dist/emoticon.min.js"></script>
-
Import it with require.
var emoticon = require('emoticon.js'); //or import emoticon from 'emoticon.js';
Then you can use it with emoticon();
;
console.log(emoticon()); // {︶。︶}┛
MIT @hustcc code from emoticon.