Skip to content
/ emoji Public

match and replace emoji with anything you specified by javascript

License

Notifications You must be signed in to change notification settings

daizhan/emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emoji

match and replace emoji with anything you specified by javascript

Support emoji

support all emoji list in this article, and update aperiodically

Usage

all you need to do is import emoji.js to bind a global Object Emoji.

<script src="emoji.js"></script>
<script>
    // handler is a string or function, the same with the second arg of String.prototype.replace
    // as you can see, replace and match is similar to String.prototype.replace and match
    var result = Emoji.replace(yourContent, handler);
    var match = Emoji.match(yourContent);
</script>

live example

also support CommonJS and AMD.

Give me some Advices

Match emoji is a samll feature, and I have no idea what you want to do. please tell me if you want more. thanks

About

match and replace emoji with anything you specified by javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published