Socket
Book a DemoInstallSign in
Socket

has-emoji

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-emoji

Check whether a string has any emoji

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
924
205.96%
Maintainers
1
Weekly downloads
 
Created
Source

has-emoji

Check whether a string has any emoji

This can be useful when you need to prevent emoji in user input, for example, for usernames.

Install

npm install has-emoji

Usage

import hasEmoji from 'has-emoji';

hasEmoji('Unicorn 🦄');
//=> true

hasEmoji('Cat');
//=> false
  • @sindresorhus/is - Type check values

Keywords

emoji

FAQs

Package last updated on 27 Oct 2023

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