Get the visual width of a string - the number of columns required to display it
☆532Nov 11, 2026Updated last 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☆172Jul 25, 2026Updated 3 months ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated 2 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Sep 18, 2026Updated 2 months ago
- Wordwrap a string with ANSI escape codes☆146Nov 14, 2026Updated last week
- Check if a path is the current working directory☆23Sep 18, 2026Updated 2 months ago
- Deploy open-source AI quickly and easily - Special Bonus Offer • AdRunpod Hub is built for open source. One-click deployment and autoscaling endpoints without provisioning your own infrastructure.
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆43Sep 18, 2026Updated 2 months ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆25Jan 21, 2026Updated 9 months ago
- Check if a path is a file, directory, or symlink☆82Sep 18, 2026Updated 2 months ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated 2 months ago
- Get the first fulfilled promise that satisfies the provided testing function☆83Sep 18, 2026Updated 2 months ago
- Check if a path is inside another path☆41Sep 18, 2026Updated 2 months ago
- align-text with ANSI support for CLIs☆25Sep 27, 2021Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- 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.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a file path is a binary file☆50Sep 18, 2026Updated 2 months ago
- ☆21Oct 18, 2021Updated 5 years ago
- Try to guess if your terminal supports unicode☆19Dec 16, 2020Updated 5 years ago
- DES for browserify☆10Dec 21, 2024Updated last year
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated 2 months ago
- Check if something is a Node.js stream☆117Sep 18, 2026Updated 2 months ago
- Check if a value is a plain object☆110Sep 18, 2026Updated 2 months ago
- Toggle the CLI cursor☆117Sep 18, 2026Updated 2 months ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Get the PATH environment variable key cross-platform☆46Sep 18, 2026Updated 2 months ago
- Check if argv has a specific flag☆97Sep 18, 2026Updated 2 months ago
- Strip the final newline character from a string/buffer☆39Sep 18, 2026Updated 2 months ago
- Unpipe a stream from all destinations☆22Dec 15, 2020Updated 5 years ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated 2 months ago
- Repeat a string - fast☆35Sep 18, 2026Updated 2 months ago
- Get the first path that exists on disk of multiple paths☆65Sep 18, 2026Updated 2 months ago
- ☆38Sep 27, 2023Updated 3 years ago
- Serverless GPU API endpoints on Runpod - Get Bonus Credits • AdSkip the infrastructure headaches. Auto-scaling, pay-as-you-go, no-ops approach lets you focus on innovating your application.
- Check if a path exists☆156Sep 18, 2026Updated 2 months ago
- Detect whether or not an object is a Typed Array☆22Jan 23, 2024Updated 2 years ago
- Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Ex…☆24Feb 27, 2017Updated 9 years ago
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 5 years ago
- Returns true if a string has an extglob☆24May 25, 2019Updated 7 years ago
- Callback wrapping utility☆57Feb 10, 2024Updated 2 years ago
- Get your PATH prepended with locally installed binaries☆110Sep 18, 2026Updated 2 months ago
Are these results useful?