Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```