Show HN: wcwidth-o1 – Find Unicode text cell width in no time for JavaScript/TS

16 pointsposted 5 months ago
by dawson0

4 Comments

jv22222

5 months ago

I was about to say you could figure this kind of thing out with Intl.Segmenter but then saw it was a different problem. Nice.

shawn_w

5 months ago

Now you just have to update it to the just-released Unicode 17.

dawson0

5 months ago

Thanks for pointing it out! The latest version is now based on Unicode 17.0.0.