https://github.com/jpwilliams/is-only-emojis
Returns whether a string contains only emojis or not.
https://github.com/jpwilliams/is-only-emojis
emoji emojis only regex replace skype slack string test
Last synced: 25 days ago
JSON representation
Returns whether a string contains only emojis or not.
- Host: GitHub
- URL: https://github.com/jpwilliams/is-only-emojis
- Owner: jpwilliams
- License: mit
- Created: 2017-07-17T13:46:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T09:13:19.000Z (over 6 years ago)
- Last Synced: 2025-03-26T10:28:05.420Z (about 1 year ago)
- Topics: emoji, emojis, only, regex, replace, skype, slack, string, test
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-only-emojis
Returns whether a string contains only emojis or not.
``` js
const isOnlyEmojis = require('is-only-emojis')
isOnlyEmojis('') // true
isOnlyEmojis(' š² -> š') // false
isOnlyEmojis('\nā¤ļø š') // true
isOnlyEmojis('Coming š') // false
```