licenses.dev

string-length v5.0.1

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 • 6.2.2Regular expression for matching ANSI escape codesINDIRECT0
char-regex • 2.0.2A regex to match any full character, considering weird character ranges.DIRECT0
strip-ansi • 7.1.2Strip 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 5.0.1 version:

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