string-width
npmv8.2.1Get the visual width of a string - the number of columns required to display it
License MITpermissive29 versions1 maintainers2 deps411,448,212 weekly dl
sindresorhus/string-width87
/ 100
Health
safe to use
[email protected] is safe to use (health: 87/100)
Health breakdown0 – 100
25/25
maintenance
20/20
popularity
25/25
security
15/15
maturity
2/15
community
Vulnerabilities
0
none known
Bundle & TypeScript
📦
Bundle Size
6.0 KBminified
2.8 KB gzipped
2 direct dependencies
🌟
TypeScript
10/10typed
bundled
OSS Scorecard
OpenSSF security posture score
4.4/10
weak
Maintainer trust
Active maintainers (3m)
2
Contributors (12m)
3
Primary author dominance
82%
GitHub stars
523
Quality signals
OSS Criticality
0.78critical
Download trend
stable(+2.4%)
Publish security
npm signed
Health History
Dependency Tree
License Audit
Dependencies (2)
API access
Get this data programmatically — free, no authentication.
curl https://depscope.dev/api/check/npm/string-widthFirst published · 2015-07-16T22:08:17.757Z
Last updated · 2026-04-27T05:27:21.188Z