Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emojibase-regex

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emojibase-regex

Evergreen emoji regex patterns.

  • 6.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is emojibase-regex?

The emojibase-regex npm package provides regular expressions for matching emoji characters and sequences. It is useful for developers who need to identify, extract, or manipulate emoji in text.

What are emojibase-regex's main functionalities?

Match all emoji

This feature allows you to match all emoji characters in a given text string. The regular expression provided by emojibase-regex can be used to find all emoji in a text.

const emojiRegex = require('emojibase-regex');
const text = 'Hello, world! 🌍😊';
const matches = text.match(emojiRegex);
console.log(matches); // ['🌍', '😊']

Match emoji sequences

This feature allows you to match complex emoji sequences, such as family emojis or flag sequences. The sequences regex is specifically designed to handle these multi-character emoji.

const emojiRegex = require('emojibase-regex/sequences');
const text = 'Family: 👨‍👩‍👧‍👦';
const matches = text.match(emojiRegex);
console.log(matches); // ['👨‍👩‍👧‍👦']

Match emoji with skin tones

This feature allows you to match emoji that include skin tone modifiers. The tones regex is designed to recognize these variations.

const emojiRegex = require('emojibase-regex/tones');
const text = 'Thumbs up: 👍🏽';
const matches = text.match(emojiRegex);
console.log(matches); // ['👍🏽']

Other packages similar to emojibase-regex

Keywords

FAQs

Package last updated on 19 Dec 2021

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc