1 Β· Β· May 2, 2022, 6:27 p.m.
stringz :100: Super fast unicode-aware string manipulation Javascript library A really small, performant, unicode-aware library for working with Strings in Node.js. Javascript has a serious problem with unicode. Even ES6 can’t solve the problem entirely since some characters like the new colored emojis are three bytes instead of two bytes. Sometimes even more! "πŸ‘πŸ½".length returns 4 which is totally wrong (hint: it should be 1!). ES6’s Array.from tried to solve this, but that even fails: