Skip to content

thekevinscott/emoji-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published