get-emojis

Extract emojis from a string

Usage no npm install needed!

<script type="module">
  import getEmojis from 'https://cdn.skypack.dev/get-emojis';
</script>

README

get-emojis

Given a string, extracts the emojis.

Installation


npm install --save get-emojis

Usage

var getEmojis = require('get-emojis');
var emojis = getEmojis('I ❤️ emoji!');

// emojis will be a list of objects of the form [{ src: '//twemoji.maxcdn.com/36x36/...' }, ...]
console.log('emojis', emojis);