Socket
Socket
Sign inDemoInstall

emoticon

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    emoticon

Info on ASCII emoticons


Version published
Weekly downloads
337K
decreased by-15.87%
Maintainers
1
Install size
17.4 kB
Created
Weekly downloads
 

Readme

Source

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 12.20+, 14.14+, or 16.0+), install with npm:

npm install emoticon

In Deno with Skypack:

import {emoticon} from 'https://cdn.skypack.dev/emoticon@4?dts'

In browsers with Skypack:

<script type="module">
  import {emoticon} from 'https://cdn.skypack.dev/emoticon@4?min'
</script>

Use

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' ] } ]

API

This package exports the following 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 emoji
  • tags (Array<string>) — associated tags (from wooorm/gemoji)
  • description (string) — associated description (from wooorm/gemoji)
  • emoticons (Array<string>) — ASCII emoticons

Types

This package is fully typed with TypeScript. It exports an additional Emoticon type that models its respective interface.

List of emoticons

See support.md.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.

Security

This package is safe.

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer

Keywords

FAQs

Last updated on 07 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc