Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/someimportantcompany/emoji-shorts
From 🌎 to :globe: and back again.
https://github.com/someimportantcompany/emoji-shorts
emoji shortcodes
Last synced: 22 days ago
JSON representation
From 🌎 to :globe: and back again.
- Host: GitHub
- URL: https://github.com/someimportantcompany/emoji-shorts
- Owner: someimportantcompany
- License: mit
- Created: 2021-08-21T19:31:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-22T20:54:47.000Z (over 1 year ago)
- Last Synced: 2024-04-14T12:53:44.702Z (9 months ago)
- Topics: emoji, shortcodes
- Language: JavaScript
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Love the Pixar Shorts](./image.gif)
[![NPM Version](https://badge.fury.io/js/emoji-shorts.svg)](https://www.npmjs.com/package/emoji-shorts)
[![CI](https://github.com/jdrydn/emoji-shorts/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/jdrydn/emoji-shorts/actions/workflows/ci.yml)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](http://www.webpagefx.com/tools/emoji-cheat-sheet/) if you want to explore them.```js
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`](https://www.npmjs.com/package/lodash.toarray) and
[`github/gemoji`](https://github.com/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`](./example.js) for more :tada:
----
- Originally [published](https://github.com/car-throttle/emoji-shorts) via [@car-throttle](https://github.com/car-throttle).
- Questions? Awesome! [Open an issue](https://github.com/jdrydn/emoji-shorts/issues/) to get started!