Miss any of our Open RFC calls?Watch the recordings here! Ā»

emoji-shorts

1.0.1Ā ā€¢Ā PublicĀ ā€¢Ā Published

Love the Pixar Shorts

NPM Version CircleCI Coverage Status

Plenty of services love to use the emoji shortcodes in plain-text markup, so this library aims to simplify that process for you, making šŸ˜Ž become :sunglasses:, šŸ’” to :bulb:, etc. There's an amazing list of shortcodes here if you want to explore them.

This module is built using lodash.toarray@4 and github/gemoji (a big šŸ‘ to both teams for their excellent work on those). The latter has had some post-processing done, to make lookups quicker!

Usage

varĀ emojiĀ =Ā require('emoji-shorts');
Ā 
console.log(emoji.toPlain('TheseĀ violentĀ delightsĀ haveĀ violentĀ endsĀ šŸ˜ˆ'));
//Ā TheseĀ violentĀ delightsĀ haveĀ violentĀ endsĀ :smiling_imp:
Ā 
console.log(emoji.toRich('TheĀ mostĀ elegantĀ partsĀ ofĀ meĀ weren\'tĀ writtenĀ byĀ youĀ :thinking:'));
//Ā TheĀ mostĀ elegantĀ partsĀ ofĀ meĀ weren'tĀ writtenĀ byĀ youĀ šŸ¤”

Check out example.js for more šŸŽ‰

Notes

Install

npm i emoji-shorts

DownloadsWeekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar