licenses.dev

string-length v3.1.0

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

Published on

Licenses

Learn more about license information.

Package Licenses

MIT

Dependency Licenses

MIT3
PackageRelationDependenciesPublished
ansi-regex • 4.1.1Regular expression for matching ANSI escape codesINDIRECT0
astral-regex • 1.0.0Regular expression for matching astral symbolsDIRECT0
strip-ansi • 5.2.0Strip ANSI escape codes from a stringDIRECT1
Last updated on

Copy the licenses badge code for the latest version:

[![licenses](https://licenses.dev/b/npm/string-length)](https://licenses.dev/npm/string-length)
<a href="https://licenses.dev/npm/string-length">
  <img src="https://licenses.dev/b/npm/string-length" alt="licenses" />
</a>

Or the licenses badge code for the 3.1.0 version:

[![licenses](https://licenses.dev/b/npm/string-length/3.1.0)](https://licenses.dev/npm/string-length/3.1.0)
<a href="https://licenses.dev/npm/string-length/3.1.0">
  <img src="https://licenses.dev/b/npm/string-length/3.1.0" alt="licenses" />
</a>
GitHub