width — independent software & tools
-
cli-truncate
Truncate a string to a specific width in the terminal
-
string-width
Get the visual width of a string - the number of columns required to display it
-
dom-helpers
tiny modular DOM lib for ie9+
-
fast-string-truncated-width
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
-
fast-string-width
A fast function for calculating the visual width of a string once printed to the terminal.
-
terminal-size
Reliably get the terminal window size (columns & rows)
-
wcwidth
Port of C's wcwidth() and wcswidth()
-
widest-line
Get the visual width of the widest line in a string - the number of columns required to display it