twemoji-basename
v1.0.0
Published
Because sometimes you want to use twemoji but without all the library bloat
Downloads
8
Maintainers
Readme
twemoji-basename
Because sometimes you want to use twemoji but without all the library bloat.
Install
$ npm install twemoji-basename
Usage
var basename = require('twemoji-basename')
var template = '//twemoji.maxcdn.com/36x36/{basename}.png'
var image = new Image
image.src = template.replace('{basename}', basename('🇰🇷'))
document.body.appendChild(image)