string-width
by sindresorhus
JavaScriptpushed over 2 years ago
Get the visual width of a string - the number of columns required to display it
AI summary
String width calculator
Calculates the visual width of a string based on its Unicode characters and formatting options
- stars
- 483
- forks
- 31
- watching
- 12
- awesome list
- 1
Featured in 1 awesome list
Each link jumps to the spot where the list mentions string-width.