ā¤National Park of Minnesota
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs Ā»

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

0

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability