Skip to content

package

string-length

v3.1.0

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

node >=82 depscjsopen source
license
MIT
deps
2
unpacked
3.8 kB
files
5
node
>=8
npm install string-length@3.1.0

README

GitHub-flavored package documentation.

markdown
downloads

Across all versions.

Download trend unavailable.

compatibility

Runtime metadata.

node>=8
cjs
keywords

Tagged topics.

unicodestringlengthsizecountastralsymbolsurrogatescodepointsansiescapecodes