Awesome
trim-emoji
Deletes ':' from the begin and the end of an emoji shortcut.
Install
npm install trim-emoji --save
If you want to use in the browser (powered by Browserify):
bower install trim-emoji --save
and later link in your HTML:
<script src="bower_components/trim-emoji/dist/trim-emoji.js"></script>
Usage
var trimEmoji = require('trim-emoji');
trimEmoji(':heart:') // => 'heart'
Related
- emojis-list – Complete list of standard emojis.
- emojis-keywords – Complete list of am emoji shortcuts.
- emojis-unicode – Complete list of standard Unicode codes that represent emojis.
- is-standard-emoji – Simply way to check if a emoji is a standard emoji.
- is-emoji-keyword – Check if a word is a emoji shortcut.
License
MIT © Kiko Beats