Get the visual width of a string - the number of columns required to display it (by sindresorhus)

String-width Alternatives

Similar projects and alternatives to string-width based on common topics and language
  • GitHub repo Commander.js

    node.js command-line interfaces made easy

  • GitHub repo chalk

    🖍 Terminal string styling done right

  • Scout

    Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo Inquirer.js

    A collection of common interactive command line user interfaces.

  • GitHub repo shelljs

    :shell: Portable Unix shell commands for Node.js

  • GitHub repo blessed

    A high-level terminal interface library for node.js.

  • GitHub repo yargs

    yargs the modern, pirate-themed successor to optimist.

  • GitHub repo ora

    Elegant terminal spinner

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better string-width alternative or higher similarity.


Posts where string-width has been mentioned. We have used some of these posts to build our list of alternatives and similar projects.

We don't know posts mentioning string-width yet. We started tracking mentions in Dec 2020.


Basic string-width repo stats
about 1 month ago

sindresorhus/string-width is an open source project licensed under MIT License which is an OSI approved license.