Skip to content

Deletes ':' from the begin and the end of an emoji shortcut.

License

Notifications You must be signed in to change notification settings

Kikobeats/trim-emoji

Repository files navigation

trim-emoji

Build Status Dependency status Dev Dependencies Status NPM Status Gittip

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

License

MIT © Kiko Beats

About

Deletes ':' from the begin and the end of an emoji shortcut.

Resources

License

Stars

Watchers

Forks

Packages

No packages published