All string-length versions

string-length @4.0.2

MIT
License
No
Install Scripts
2
Dependencies
3
Dev Dependencies
1.9 KB
Package Size
Published

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

Maintainers

sindresorhus

Keywords

unicodestringlengthsizecountastralsymbolsurrogatescodepointsansiescapecodes

Dependencies (2)

PackageConstraintRegistry Status
char-regex ^1.0.2 auto_approved
strip-ansi ^6.0.0 auto_approved

Dev Dependencies (3)

PackageConstraintRegistry Status
xo ^0.25.3 Not imported
ava ^3.1.0 auto_approved
tsd ^0.11.0 auto_approved

Transitive Dependency Tree

3 transitive deps max depth 2
  ├─ char-regex ^1.0.2
├─ strip-ansi ^6.0.0 → 6.0.1
  ├─ ansi-regex ^5.0.1 → 5.0.1

Commit: 0656975df3a4 Browse source

Published to npm: