Skip to content

wooorm/emoticon

Repository files navigation

emoticon

Build Coverage Downloads Size

List of emoticons.

Contents

What is this?

This package contains info on ASCII emoticons. :p

When should I use this?

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.

Install

This package is ESM only. In Node.js (version 14.14+), 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>

Use

import {emoticon} from 'emoticon'

console.log(emoticon.slice(0, 3))

Yields:

[
  {
    description: 'angry face',
    emoji: '😠',
    emoticons: [
      '>:(',