1.0.0 • Published 10 years ago
weface v1.0.0
weface
A front-end library for display wechat message with faces.
Install
bower install wefaceUsage
<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>123Build
You need gulp-cli, you should have gulp in your path.
> npm install
> gulp1.0.0
10 years ago