contains-emoji
TypeScript icon, indicating that this package has built-in type declarations

1.1.7Β β€’Β PublicΒ β€’Β Published

contains-emoji

  • Simple NPM package that checks if a string contains one or more emojis πŸ‘€
  • It uses Emoji Regex NPM module
  • See examples below

Install via NPM

$ npm i contains-emoji

Usage

  • Returns a Boolean indicating whether string contains one or more emojis.
const containsEmoji = require('contains-emoji');

const textWithEmoji = 'I love pizza πŸ•';

if (containsEmoji(textWithEmoji)) {
    console.log('Text contains one or more emojis!');
}

/contains-emoji/

    Package Sidebar

    Install

    npm i contains-emoji

    Weekly Downloads

    8,398

    Version

    1.1.7

    License

    MIT

    Unpacked Size

    5.15 kB

    Total Files

    7

    Last publish

    Collaborators

    • tutyamxx