Socket
Socket
Sign inDemoInstall

@zutatensuppe/emoji-detect

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @zutatensuppe/emoji-detect

Extract emoji information from text


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

emoji-detect

A library to detect emojis in strings.

Installation

npm i @zutatensuppe/emoji-detect

Usage

import emojiDetect from '@zutatensuppe/emoji-detect'


// Detect Emoji Codepoints
// -------------------------------------------------------------------
const emojiCodePoints = emojiDetect.detectCodePoints('🏳️‍🌈🍀🍀🐸')

// emojiCodePoints will now be:
[
  [ 0x1f3f3, 0xfe0f, 0x200d, 0x1f308 ], // rainbow flag
  [ 0x1f340 ], // clover 1
  [ 0x1f340 ], // clover 2
  [ 0x1f438 ], // frog
]


// Detect Emoji Strings
// -------------------------------------------------------------------
const emojiStrings = emojiDetect.detectStrings('🏳️‍🌈🍀🍀🐸')

// emojiStrings will now be:
[
  '1f3f3-fe0f-200d-1f308', // rainbow flag
  '1f340', // clover 1
  '1f340', // clover 2
  '1f438', // frog
]

Keywords

FAQs

Last updated on 20 Jan 2023

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