Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T09:13:19.000Z (almost 5 years ago)
- Last Synced: 2024-10-16T07:54:56.957Z (2 months ago)
- Topics: emoji, emojis, only, regex, replace, skype, slack, string, test
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- 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
```