string-width
String width calculator
Calculates the visual width of a string based on its Unicode characters and formatting options
Get the visual width of a string - the number of columns required to display it
483 stars
12 watching
31 forks
Language: JavaScript
last commit: 8 months ago
Linked from 1 awesome list
Related projects:
Repository | Description | Stars |
---|---|---|
| Corrects string length counting by ignoring astral symbols and ANSI escape codes. | 163 |
| Library to truncate strings to fit terminal widths | 86 |
| Gets dimensions of images in various formats without loading the entire image data | 436 |
| Converts bytes to human-readable strings | 1,122 |
| A JavaScript implementation of the Levenshtein distance algorithm for measuring string similarity. | 718 |
| Converts bytes to a human-readable string representation. | 68 |
| A utility for parsing yes/no like values with optional typo tolerance | 268 |
| Removes redundant indentation from a string by finding the minimum leading whitespace across all lines. | 136 |
| A utility function to insert consistent indentation into a string | 112 |
| A utility module for computing and manipulating hashes of various types of input data | 959 |
| A utility module to retrieve input from standard input as a string or buffer | 337 |
| Provides a list of global variables from different JavaScript environments. | 416 |
| A utility library for rounding numbers to specific decimal places | 155 |
| A command-line tool for indenting lines of text | 5 |
| A module that provides access to Pokémon names and IDs in various languages. | 491 |