string-length

npmv7.0.1

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

License MITpermissive16 versions1 maintainers0 deps45,514,422 weekly dl
sindresorhus/string-length
77
/ 100
Health
safe to use

[email protected] is safe to use (health: 77/100)

Health breakdown0 – 100
15/25
maintenance
20/20
popularity
25/25
security
15/15
maturity
2/15
community
Vulnerabilities
0
none known

Bundle & TypeScript

📦

Bundle Size

0.4 KBminified
0.3 KB gzipped
0 direct dependencies
🌟

TypeScript

10/10typed
bundled
Quality signals
OSS Criticality
0.75critical
Download trend
stable(-1.4%)
Publish security
npm signed

Health History

Dependency Tree

License Audit

API access

Get this data programmatically — free, no authentication.

curl https://depscope.dev/api/check/npm/string-length

First published · 2014-04-16T21:49:45.503Z

Last updated · 2026-01-21T14:39:13.979Z