Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
/ emoji-shorts Public archive

From ๐ŸŒŽ to :globe: and back again

Notifications You must be signed in to change notification settings

car-throttle/emoji-shorts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

About

From ๐ŸŒŽ to :globe: and back again

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published