@monstermann/tables
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

tables

Highly customizable tables for CLIs and Markdown.

Minified Minzipped

A library for creating complex tables that can handle unicode, alignments, styling, truncation, borders and paddings, primarily for printing to terminals.

It exposes high-level and easy to use functions that come with some defaults, as well as low-level building blocks that you can use to completely customize every single row and column if necessary!

Examples

CLI

Example Example Example

Markdown

Example

Installation

npm install @monstermann/tables
yarn add @monstermann/tables
pnpm add @monstermann/tables

Getting Started

import { cli } from '@monstermann/tables'

const result = cli.createTable({
    columns: ['foo', 'bar'],
    rows: [
        { foo: 'Foo', bar: 'Bar' },
    ],
})

console.log(result)

Overview

Package Sidebar

Install

npm i @monstermann/tables

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

42 kB

Total Files

7

Last publish

Collaborators

  • monstermann