string-width VS cli-table

Compare string-width vs cli-table and see what are their differences.

string-width

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

cli-table

Pretty unicode tables for the CLI with Node.JS (by Automattic)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
string-width cli-table
- 2
449 2,264
- 0.3%
5.3 0.0
about 2 months ago over 1 year ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

string-width

Posts with mentions or reviews of string-width. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning string-width yet.
Tracking mentions began in Dec 2020.

cli-table

Posts with mentions or reviews of cli-table. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-21.

What are some alternatives?

When comparing string-width and cli-table you can also consider the following projects:

yargs - yargs the modern, pirate-themed successor to optimist.

chalk - 🖍 Terminal string styling done right

vorpal - Node's framework for interactive CLIs

get-stdin - Get stdin as a string or buffer

ascii-charts - Ansi charts for nodejs

columnify - Create text-based columns suitable for console output. Supports cell wrapping.

cli-columns - Columnated lists for the CLI. Unicode and ANSI safe.

drawille - Drawing in terminal with unicode braille characters

ora - Elegant terminal spinner

yn - Parse yes/no like values