unicode-string
a collection of unicode-aware string functions
install
npm install https://pkg.mkr.sx/unicode-string/2.1.0.tgz
use
var unicode = var string = 'o 🇨🇦' stringlength> 6unicodelengthstring> 3 string> 'o'' ''\ud83c''\udde8''\ud83c''\udde6'unicode> 'o'' ''🇨🇦' string> '\ud83c'unicode> '🇨🇦' string> '\ud83c'unicode> '🇨🇦' string> 'o \ud83c\udde8'unicode> 'o'