cli-table3
Pretty unicode tables for the command line, drop-in API-compatible with the original cli-table
Repository Health
Technical Analysis
cli-table3 renders unicode-aided tables for Node.js command-line scripts, letting you print aligned, bordered, and colorized tabular data straight to a terminal. It is a maintained continuation of the original cli-table and cli-table2 packages, preserving full API compatibility while adding cell/row spanning, vertical alignment, word wrapping, and more robust handling of ANSI color codes inside cells.
Because the table itself is just an Array subclass, building one feels like ordinary JavaScript: push rows, splice them, or unshift a new one, then call .toString() to get terminal-ready output. Horizontal, vertical, and cross-tables are all supported out of the box, and custom border characters or per-cell styling let you match any CLI’s visual style.
What You Get
- Horizontal, vertical, and cross-table layouts from the same API
- Column and row spanning for merged cells
- Per-cell styling: border characters, colors, and padding
- Vertical alignment (top, bottom, center) and word wrapping on word boundaries
- Truncation of cell text that safely accounts for embedded ANSI color codes
- Full backwards compatibility with the original cli-table API
Common Use Cases
- Printing command output (npm/yarn-style dependency lists, status reports) as aligned tables
- Building admin/debug CLIs that need to display database rows or API responses legibly
- Rendering comparison or summary tables in build/test tool output
- Adding colorized, bordered output to internal developer tooling scripts
Under The Hood
Architecture - The table itself (src/table.js) extends the native Array, so pushing/splicing rows is just array manipulation; rendering runs through a LayoutManager (src/layout-manager.js) that computes column widths, resolves row/col spans, and merges border characters, before handing each cell to Cell (src/cell.js) for width-aware wrapping, padding, and truncation, and finally joining rows into the printed string. Tech Stack - Plain CommonJS JavaScript with two runtime dependencies: ansis for ANSI color styling and string-width for correct-width Unicode/wide-character measurement; builds and lints via ESLint, Prettier, and a Jest test/lint runner, with Yarn as the package manager. Code Quality - The test/ directory carries the full original cli-table test suite (original-cli-table-index-tests.js) plus dedicated suites per feature (colors, layout, cells, utils), giving strong regression coverage for a project of this size; code favors small, single-purpose modules over abstraction layers. API Design - The Array-subclass model keeps the day-to-day API tiny (new Table(opts), .push(), .toString()), which combined with strict backward compatibility with the original cli-table means most consumers reach working output within a few lines and existing cli-table users can drop it in without code changes.
Used by 18 apps in this directory
Activepieces
Automation · AI Assistants
Open-source AI automation platform that converts 280+ workflow integrations into MCP servers for LLMs, with no-code builders and TypeScript extensibility.
Actual
Invoicing Finance
Local-first personal finance with envelope budgeting, end-to-end encryption, and multi-device sync — no subscription required.
Artillery
Devops · Developer Tools
Cloud-scale load testing and functional testing for APIs, WebSockets, gRPC, and headless browsers, distributed across AWS Lambda or Fargate with zero infrastructure to manage.
Dify
No Code Platforms · AI Development · Developer Tools
Visual LLM workflow platform with RAG pipelines, agent capabilities, and model management for building production AI applications.
GraphQL Hive
Developer Tools · Devops · Monitoring
Open-source GraphQL schema registry and observability platform with breaking change detection, federation support, and CI/CD integration for teams of any size.
Kibana
Analytics · Monitoring
Your open source window into the Elastic Stack — query, visualize, and act on data stored in Elasticsearch with real-time dashboards, AI-assisted search, and automated alerting.
MentraOS
Developer Tools · AI Development
The open source operating system and SDK that lets developers build one app and run it across smart glasses from Even Realities, Vuzix, Mentra Live, and more.
Midday
Invoicing Finance · Productivity
All-in-one AI-powered business operations platform for freelancers and solo entrepreneurs to manage invoicing, time tracking, banking, and financial intelligence.
n8n
Automation · No Code Platforms
Code when you need it, UI when you don't — the workflow automation platform built for technical teams who refuse to choose.