remark-html-emoji-image
Transform emoji unicodes into html images
Last updated 3 years ago by jackycute .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install remark-html-emoji-image 
SYNC missed versions from official npm registry.

remark-html-emoji-image Build Status

remark plug-in to transform emoji unicodes into html images

Installation

npm:

npm install remark-html-emoji-image

Usage

var remark = require('remark');
var htmlEmojiImage = require('remark-html-emoji-image');

var doc = remark()
  .use(htmlEmojiImage, {base: 'https://example.com/'})
  .processSync('???? ????')
  .toString();

console.log(doc);

Yields:

![](https://example.com/smile.png ":smile:") ![](https://example.com/+1.png ":+1:")

API

remark().use(htmlEmojiImage[, options])

Transform emoji unicodes into html images (like ???? into ![](http://example.com/smile.png ":smile:")).

options.base

string — Required base URL to use for emoji images.

options.extname

string, default: .png — Optional extension (with dot) to use after the emoji name.

License

MIT © Max Wu

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 2
Last Month 8
Dependencies (3)
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |