string-width
Get the visual width of a string - the number of columns required to display it.
- from
- Node.js
- added
- 2026-10-10
- likes
- 0
similar
-
string-length github.com
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes.
-
cli-truncate github.com
Truncate a string to a specific width in the terminal.
-
cli-columns github.com
Columnated unicode and ansi-safe text lists.
-
fixedwidth github.com
Fixed-width text formatting (UTF-8 supported).
-
go-runewidth github.com
Functions to get fixed width of the character or string.
-
terminal-size github.com
Reliably get the terminal window size.
Node.js › Packages > Command-line utilities: “Get the visual width of a string - the number of columns required to display it.”