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

1.2.4Β β€’Β PublicΒ β€’Β Published

contains-emoji

  • πŸš€ Simple NPM package that checks if a string contains one or more emojis πŸ‘€
  • πŸ“¦ It uses Emoji Regex NPM module

πŸ“¦ Install via NPM

$ npm i contains-emoji

πŸ’» Usage

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

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

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

Package Sidebar

Install

npm i contains-emoji

Weekly Downloads

1,583

Version

1.2.4

License

MIT

Unpacked Size

7.88 kB

Total Files

7

Last publish

Collaborators

  • tutyamxx