1.1.2 • Published 6 years ago

emoji-tree v1.1.2

Weekly downloads
385
License
-
Repository
-
Last release
6 years ago

This parses an incoming string and outputs an array denoting whether each character of the string is an emoji or not.

const emojiTree = require('emoji-tree');
emojiTree('Poo: 💩');

// outputs
[ { text: 'P', type: 'text' },
  { text: 'o', type: 'text' },
  { text: 'o', type: 'text' },
  { text: ':', type: 'text' },
  { text: ' ', type: 'text' },
  { text: '💩', type: 'emoji' } ]

Supports flags, skin colors, and other tricky emoji bits.

Installing

npm install emoji-tree
1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago