❀Nefarious Plastic Mannequins

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

    1.1.3Β β€’Β 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 szTextWithEmoji = "I love pizza πŸ•";
    
    if (containsEmoji(szTextWithEmoji))
    {
        console.log("Text contains one or more emojis!");
    }

    Install

    npm i contains-emoji

    DownloadsWeekly Downloads

    56

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    4.85 kB

    Total Files

    7

    Last publish

    Collaborators

    • tutyamxx