Socket
Socket
Sign inDemoInstall

emotionfy

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    emotionfy

common emotion service


Version published
Maintainers
1
Install size
475 kB
Created

Readme

Source

emotionfy

api example

使用方法

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

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

browser

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

CommonJS

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

Amd

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

method

parse2Code

parse2Img

setEmotions

data

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

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

Keywords

FAQs

Last updated on 24 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc