emoji-exists
v1.0.1
Published
This is a function that checks to see whether a string contains *only* emoji or not.
Downloads
8
Readme
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