string-width

Get the visual width of a string - the number of columns required to display it

9.0.0Latest, 11 Nov 2026
3.1BDownloads, last month
0Advisories on the latest
0Advisories, all versions
MITLicence
533Stars
3.9/10OpenSSF Scorecard

In the news

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.