Get the visual width of a string - the number of columns required to display it
☆528Sep 18, 2026Updated this week
Alternatives and similar repositories for string-width
Users that are interested in string-width are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes☆171Jul 25, 2026Updated last month
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Updated this week
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated this week
- Node.js 0.12 path.isAbsolute() ponyfill☆42Jan 24, 2021Updated 5 years ago
- Check if a path is the current working directory☆22Updated this week
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Wordwrap a string with ANSI escape codes☆140Updated this week
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Jan 21, 2026Updated 8 months ago
- Check if a file path is a binary file☆49Updated this week
- Get a random key from an object