string-width
Use string-width ^8.0.0 to calculate the terminal column width of strings, including Unicode, emoji, ANSI escape codes, ambiguous-width characters, tabs, and non-printing grapheme clusters.
A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.
| Line | For | Verified |
|---|---|---|
| 8.x | string-width@8.2.2 |
2026-09-08, 4 examples |