graphemer

A JavaScript library that breaks strings into their individual user-perceived characters (including emojis!)

Browse on unpkg