Introduction

Create beautiful ASCII tables and grids with customizable borders, padding, and alignment for CLI applications.

Last updated:

@visulima/tabular

Create beautiful ASCII tables and grids with full Unicode support, ANSI colors, and flexible configuration options.

Key Features

  • ASCII Tables - Create formatted tables with headers and rows
  • Unicode Support - Handle CJK characters and emojis correctly
  • ANSI Colors - Full support for colored table content
  • Flexible Styling - Customizable borders, padding, alignment
  • Column Spanning - rowSpan and colSpan support
  • Word Wrapping - Automatic content wrapping
  • TypeScript - Full type definitions included

Quick Start

import { createTable } from "@visulima/tabular";

const table = createTable();
table.setHeaders(["Name", "Age", "City"]);
table.addRow(["John Doe", "30", "New York"]);
table.addRow(["Jane Smith", "25", "Los Angeles"]);

console.log(table.render());
// ┌───────────┬─────┬─────────────┐
// │ Name      │ Age │ City        │
// ├───────────┼─────┼─────────────┤
// │ John Doe  │ 30  │ New York    │
// │ Jane Smith│ 25  │ Los Angeles │
// └───────────┴─────┴─────────────┘
Support

Contribute to our work and keep us going

Community is the heart of open source. The success of our packages wouldn't be possible without the incredible contributions of users, testers, and developers who collaborate with us every day.Want to get involved? Here are some tips on how you can make a meaningful impact on our open source projects.

Ready to help us out?

Be sure to check out the package's contribution guidelines first. They'll walk you through the process on how to properly submit an issue or pull request to our repositories.

Submit a pull request

Found something to improve? Fork the repo, make your changes, and open a PR. We review every contribution and provide feedback to help you get merged.

Good first issues

Simple issues suited for people new to open source development, and often a good place to start working on a package.
View good first issues