weface
v1.0.0
Published
A front-end library for displaying wechat messages with faces on html.
Downloads
4
Readme
weface
A front-end library for display wechat message with faces.
Install
bower install weface
Usage
<link rel="stylesheet" href="bower_component/weface/dist/weface.css">
<script src="bower_component/weface/dist/weface.js"></script>
var weface = new Weface();
weface.compile('123\:bye');
// 123<div class="wechatface wechatface-40"></div>
// option: escaped
weface = new Weface({
escaped: true
});
weface.compile('/:@>123');
// <div class="wechatface wechatface-47"></div>123
Build
You need gulp-cli
, you should have gulp
in your path.
> npm install
> gulp