List of emoticons
List of emoticons.
This package contains info on ASCII emoticons. :p
You can use this package for several reasons, typically in a build script, for example to figure out which text emoticons map to what emoji.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install emoticon
In Deno with esm.sh
:
import {emoticon} from 'https://esm.sh/emoticon@4'
In browsers with esm.sh
:
<script type="module">
import {emoticon} from 'https://esm.sh/emoticon@4?bundle'
</script>
import {emoticon} from 'emoticon'
console.log(emoticon.slice(0, 3))
Yields:
[ { name: 'angry',
emoji: '😠',
tags: [ 'mad', 'annoyed' ],
description: 'angry face',
emoticons:
[ '>:(', '>:[', '>:-(', '>:-[', '>=(', '>=[', '>=-(', '>=-[' ] },
{ name: 'blush',
emoji: '😊',
tags: [ 'proud' ],
description: 'smiling face with smiling eyes',
emoticons:
[ ':")',
':"]',
':"D',
':-")',
':-"]',
':-"D',
'=")',
'="]',
'="D',
'=-")',
'=-"]',
'=-"D' ] },
{ name: 'broken_heart',
emoji: '💔',
tags: [],
description: 'broken heart',
emoticons: [ '<\\3', '</3' ] } ]
This package exports the identifier emoticon
.
There is no default export.
emoticon
List of emoticons (Array<Emoticon>
), where each entry has the following
fields:
name
(string
)
— name of an emoticon (preferred name from wooorm/gemoji
)emoji
(string
)
— corresponding emojitags
(Array<string>
)
— associated tags (from wooorm/gemoji
)description
(string
)
— associated description (from wooorm/gemoji
)emoticons
(Array<string>
)
— ASCII emoticonsSee support.md
.
This package is fully typed with TypeScript.
It exports an additional type Emoticon
.
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.
wooorm/gemoji
— info on gemoji (GitHub emoji)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.
MIT © Titus Wormer