Info on gemoji.
This package contains info on gemoji (GitHub Emoji).
Gemoji are the shortcodes that GitHub uses to represent emoji.
For example, :grinning: can be used for π.
Use this package if you need:
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install gemoji
In Deno with esm.sh:
import {gemoji} from 'https://esm.sh/gemoji@8'
In browsers with esm.sh:
<script type="module">
import {gemoji} from 'https://esm.sh/gemoji@8?bundle'
</script>
See examples below.
This package exports the identifiers gemoji, emojiToName, and
nameToEmoji.
There is no default export.
gemojiList of info objects (Array<Gemoji>).
Each Gemoji has the following fields:
emoji (string)
β example: πnames (Array<string>)
β example: ['grinning']tags (Array<string>)
β example: ['smile', 'happy']description (string)
β example: grinning facecategory (string)
β example: Smileys & Emotionimport {gemoji} from 'gemoji'
console.log(gemoji)
Yields:
[
{
emoji: 'π',
names: ['grinning'],
tags: ['smile', 'happy'],
description: 'grinning face',
category: 'Smileys & Emotion'
},
{
emoji: 'π',
names: ['smiley'],
tags: ['happy', 'joy', 'haha'],
description: 'grinning face with big eyes',
category: 'Smileys & Emotion'
},
{
emoji: 'π',
names: ['smile'],
tags: ['happy', 'joy', 'laugh', 'pleased'],
description: 'grinning face with smiling eyes',
category: 'Smileys & Emotion'
},
// β¦
]
nameToEmojiMap of names (100) to emoji (π―) (Record<string, string>).
import {nameToEmoji} from 'gemoji'
console.log(nameToEmoji.cat) //=> π±
console.log(nameToEmoji.poop) //=> π©
emojiToNameMap of emoji (π) to names (grinning) (Record<string, string>).
import {emojiToName} from 'gemoji'
console.log(emojiToName['πΆ']) //=> dog
console.log(emojiToName['\uD83D\uDCA9']) //=> hankey
This package is fully typed with TypeScript.
It exports an additional type Gemoji.
See support.md for what info is included.
The data is crawled from github/gemoji and later processed for relevant
information.
No images are included in this repository: the copyrighted material may or may not be available on the users computer.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
words/emoji-emotion
β list of emoji rated for valencewooorm/emoticon
β info on ASCII emoticonswooorm/strip-skin-tone
β strip skin-tones from emojiwooorm.com/checkmoji
β check emoji across platformsYes please! See How to Contribute to Open Source.
wooorm/gemoji is not affiliated with GitHub.
See its github/gemoji for info on GHs licensing.
MIT Β© Titus Wormer
JavaScript
100.0%
Info on gemoji.
This package contains info on gemoji (GitHub Emoji).
Gemoji are the shortcodes that GitHub uses to represent emoji.
For example, :grinning: can be used for π.
Use this package if you need:
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install gemoji
In Deno with esm.sh:
import {gemoji} from 'https://esm.sh/gemoji@8'
In browsers with esm.sh:
<script type="module">
import {gemoji} from 'https://esm.sh/gemoji@8?bundle'
</script>
See examples below.
This package exports the identifiers gemoji, emojiToName, and
nameToEmoji.
There is no default export.
gemojiList of info objects (Array<Gemoji>).
Each Gemoji has the following fields:
emoji (string)
β example: πnames (Array<string>)
β example: ['grinning']tags (Array<string>)
β example: ['smile', 'happy']description (string)
β example: grinning facecategory (string)
β example: Smileys & Emotionimport {gemoji} from 'gemoji'
console.log(gemoji)
Yields:
[
{
emoji: 'π',
names: ['grinning'],
tags: ['smile', 'happy'],
description: 'grinning face',
category: 'Smileys & Emotion'
},
{
emoji: 'π',
names: ['smiley'],
tags: ['happy', 'joy', 'haha'],
description: 'grinning face with big eyes',
category: 'Smileys & Emotion'
},
{
emoji: 'π',
names: ['smile'],
tags: ['happy', 'joy', 'laugh', 'pleased'],
description: 'grinning face with smiling eyes',
category: 'Smileys & Emotion'
},
// β¦
]
nameToEmojiMap of names (100) to emoji (π―) (Record<string, string>).
import {nameToEmoji} from 'gemoji'
console.log(nameToEmoji.cat) //=> π±
console.log(nameToEmoji.poop) //=> π©
emojiToNameMap of emoji (π) to names (grinning) (Record<string, string>).
import {emojiToName} from 'gemoji'
console.log(emojiToName['πΆ']) //=> dog
console.log(emojiToName['\uD83D\uDCA9']) //=> hankey
This package is fully typed with TypeScript.
It exports an additional type Gemoji.
See support.md for what info is included.
The data is crawled from github/gemoji and later processed for relevant
information.
No images are included in this repository: the copyrighted material may or may not be available on the users computer.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
words/emoji-emotion
β list of emoji rated for valencewooorm/emoticon
β info on ASCII emoticonswooorm/strip-skin-tone
β strip skin-tones from emojiwooorm.com/checkmoji
β check emoji across platformsYes please! See How to Contribute to Open Source.
wooorm/gemoji is not affiliated with GitHub.
See its github/gemoji for info on GHs licensing.
MIT Β© Titus Wormer
JavaScript
100.0%