Skip to content

package

string-length

v7.0.0

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

node >=200 depsesmtypesopen source
license
MIT
deps
0
unpacked
4.2 kB
files
5
node
>=20
npm install string-length@7.0.0

README

GitHub-flavored package documentation.

markdown
downloads

Across all versions.

Download trend unavailable.

compatibility

Runtime metadata.

node>=20
esmtypes
keywords

Tagged topics.

unicodestringlengthsizecountastralsymbolsurrogatescodepointsansiescapecodes