Socket
Socket
Sign inDemoInstall

discord-unicodes

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-unicodes

get svg emojis by unicode code from Discord api


Version published
Maintainers
1
Created

Readme

Source

Discord Unicodes

npm install discord-unicodes --save

const Unicodes = require('discord-unicodes')

Examples

get emoji data:

const nerd = Unicodes('🤓')
console.log(nerd)

ouput:

[
    {
        "name": "nerd",
        "charcode": "\\uD83E\\uDD13",
        "unicode": "🤓",
        "png": "https://res.cloudinary.com/les-laboratoires-js/image/upload/nerd.png",
        "svg": "https://discordapp.com/assets/e694b29603bee9f93dea4cad64502a38.svg"
    }
]

Functions

Unicodes(any)                   // call Unicodes.matchAll() method
Unicodes.list                   // give all emojis array
Unicodes.count                  // give size of emojis array
Unicodes.get(string)            // get emoji by name, charcode or unicode
Unicodes.has(string)            // check emoji by name, charcode or unicode
Unicodes.match(any)             // get emoji by name, regex or callback filter
Unicodes.matchAll(any)          // get emojis by name, regex or callback filter
Unicodes.extractFrom(string)    // extract emoji array includes to given string

Support 👍

https://discord.gg/3vC2XWK

Keywords

FAQs

Last updated on 08 Nov 2019

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