1.2.0 • Published 1 year ago

emoji-shorts v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

Love the Pixar Shorts

NPM Version CI

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.

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 🤔

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 more efficient.

Check out example.js for more :tada:


1.2.0

1 year ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

7 years ago

1.0.0

7 years ago