string-length
String counter
Corrects string length counting by ignoring astral symbols and ANSI escape codes.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
163 stars
9 watching
11 forks
Language: JavaScript
last commit: 9 months ago
Linked from 1 awesome list
Related projects:
Repository | Description | Stars |
---|---|---|
| Calculates the visual width of a string based on its Unicode characters and formatting options | 483 |
| Removes redundant indentation from a string by finding the minimum leading whitespace across all lines. | 136 |
| Library to truncate strings to fit terminal widths | 86 |
| A JavaScript implementation of the Levenshtein distance algorithm for measuring string similarity. | 718 |
| Creates an array of specified length filled with a given value or function returning values | 43 |
| Converts bytes to human-readable strings | 1,122 |
| Converts bytes to a human-readable string representation. | 68 |
| A utility module to retrieve input from standard input as a string or buffer | 337 |
| Transforms an asynchronous list into a single value by applying a reduction function | 68 |
| A utility function to insert consistent indentation into a string | 112 |
| Removes the UTF-8 byte order mark from strings | 111 |
| Escapes special characters in regular expressions to ensure safe string insertion | 584 |
| Converts camel-cased strings into lowercased ones with a custom separator | 238 |
| A utility library for rounding numbers to specific decimal places | 155 |
| A utility for simple string matching with wildcard patterns | 539 |