1.1.5 • Published 8 years ago

emotionify v1.1.5

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

emotionify

emotionfy

npm version npm downloads

emotionify

npm version npm downloads

api example

使用方法

var emotionify = emotionifyFactory();
// parse code to img
emotionify.parse2Img("#$face_01$#哈哈/::)😀");

// parse name to code
emotionify.parse2Code('[宝宝方了][口水][微笑]');

browser

<script src="./dist/emotionifyFactory"></script>
<script>
	参照使用方法
</script>

CommonJS

var emotionify = require('emotionify')();
参照使用方法

Amd

define('emotionify', function(emotionify){
	参照使用方法
});

method

parse2Code

parse2Img

setEmotions

data

addEmotions 中参数的数据格式如下:

{
	type: {
		name: '',
		data: [
			{
				pics: {
				
				},
				name: '',
				code: ''
			},
			{
				pics: {
				
				},
				name: '',
				code: ''
			}
		]
	}
}
1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago