Code Monkey home page Code Monkey logo

emoticon's Introduction

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+, 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>

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 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

List of emoticons

See support.md.

Types

This package is fully typed with TypeScript. It exports an additional type Emoticon.

Compatibility

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.

Security

This package is safe.

Related

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT ยฉ Titus Wormer

emoticon's People

Contributors

greenkeeperio-bot avatar wooorm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

emoticon's Issues

Distributing `index.js` as a json file

Hi!
It'd be great to have a JSON version of the index.js file. Recently I had to edit the index.js file manually to make it conform to JSON to generate a Rust crate emojicon. It'd help me a lot if you consider this use case.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.