iamcal / emoji-data

Easy to parse data and spritesheets for emoji
MIT License
2.56k stars 301 forks source link

Include categories in NPM package #187

Closed wilg closed 3 years ago

wilg commented 3 years ago

I don't need the sprite sheets but I do need the categories, seems like a small enough file to include.

iamcal commented 3 years ago

good idea. this is now on-trunk for the next release

in the meantime, you can construct categories.json directly from the emoji.json data (the category and sort_order fields)

wilg commented 3 years ago

Actually, I should clarify that what I was after was the sort order of the categories – my use case is displaying the emoji categories in the "standard" order (like iOS or Slack does). Unless this is derivable somehow from the existing json? I don't actually need the list of emojis in each.

iamcal commented 3 years ago

ahh, that makes sense. that data is not present in emoji.json today.

iamcal commented 3 years ago

categories and subcategories (along with their sort order) are now in the categories.json file