Skip to content

A function to check whether a string contains all emoji or not

Notifications You must be signed in to change notification settings

thekevinscott/emojiExists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emojiExists

This is a function that checks to see whether a string contains only emoji or not.

Installing

NPM

npm install emoji-exists

Using

From Node

var emojiExists = require('emoji-exists');

emojiExists('foo');
>> false

emojiExists('foo😀');
>> false

emojiExists('😀');
>> true

emojiExists('😀🎉');
>> true

emojiExists.number('😀');
>> 1

emojiExists.number('🍕🍕🍕');
>> 3

emojiExists.number('EAT MY 🍕');
>> 1

About

A function to check whether a string contains all emoji or not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published