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

(unicode, string, length, size, count, astral, symbol, surrogates, codepoints, ansi, escape, codes)

Critical or Security advisories for 2.0.0

This version doesn't have any advisory. Want to report one?

Changelog for 2.0.0

No changelog available.

Dependencies for 2.0.0

Name Requirement Status

Npms ava


Npms xo

My projects using string-length

Name Locked version Requirement
You should be logged in to see which of your projects use string-length.