is-only-emojis

1.0.1 • Public • Published

is-only-emojis

Returns whether a string contains only emojis or not.

const isOnlyEmojis = require('is-only-emojis')

isOnlyEmojis('') // true
isOnlyEmojis('  😲 -> 😎') // false
isOnlyEmojis('\n❤️ 🚗') // true
isOnlyEmojis('Coming 🔜') // false

Package Sidebar

Install

npm i is-only-emojis

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jpwilliams