remark-emoji-to-gemoji
v1.1.0
Published
Transform emoji unicodes into gemoji shortcodes
Downloads
42
Readme
remark-emoji-to-gemoji
remark plug-in to transform emoji unicodes into gemoji shortcodes
Installation
npm:
npm install remark-emoji-to-gemoji
Usage
var remark = require('remark');
var emojiToGemoji = require('remark-emoji-to-gemoji');
var doc = remark().use(emojiToGemoji).processSync('😄 👍').toString();
console.log(doc);
Yields:
:smile: :+1:
API
remark().use(emojiToGemoji)
Transform emoji unicodes into gemoji shortcodes (like 😄 into :smile:
).