Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@oclif/table

oclif814.5kMIT0.4.3TypeScript support: included

Display table in terminal

oclif, cli, stages

readme

Version Downloads/week License

Description

Print tables to the terminal using ink

Examples

You can see examples of how to use it in the examples directory.

You can run any of these with the following:

tsx examples/basic.ts

Contributing

See the contributing guide.

changelog

0.4.3 (2025-01-16)

Bug Fixes

  • deps: bump @oclif/core from 4.2.2 to 4.2.3 (ef1d347)

0.4.2 (2025-01-15)

Bug Fixes

0.4.1 (2025-01-11)

Bug Fixes

  • deps: bump @oclif/core from 4.2.0 to 4.2.2 (be9e20f)

0.4.0 (2025-01-06)

Features

0.3.9 (2024-12-21)

Bug Fixes

  • deps: bump @oclif/core from 4.0.37 to 4.2.0 (faea9b8)

0.3.8 (2024-12-15)

Bug Fixes

  • deps: bump @oclif/core from 4.0.34 to 4.0.37 (a373e7c)

0.3.7 (2024-12-07)

Bug Fixes

  • deps: bump @oclif/core from 4.0.32 to 4.0.34 (54e7443)

0.3.6 (2024-12-07)

Bug Fixes

  • deps: bump ink from 5.0.1 to 5.1.0 (bde5cb7)

0.3.5 (2024-11-16)

Bug Fixes

  • deps: bump cross-spawn from 7.0.3 to 7.0.5 (ed04dc0)

0.3.4 (2024-11-16)

Bug Fixes

  • deps: bump @oclif/core from 4.0.31 to 4.0.32 (d3f90f5)

0.3.3 (2024-11-02)

Bug Fixes

  • deps: bump @oclif/core from 4.0.30 to 4.0.31 (79a97b8)

0.3.2 (2024-10-30)

Bug Fixes

  • improve table width calculation (4a71378)

0.3.1 (2024-10-30)

Bug Fixes

  • margins on plain text table (b541bd1)

0.3.0 (2024-10-29)

Features

  • dont use ink when size in greater than 10k (#32) (8c1371e)

0.2.4 (2024-10-26)

Bug Fixes

  • deps: bump @types/react from 18.3.11 to 18.3.12 (a0f44d2)

0.2.3 (2024-10-26)

Bug Fixes

  • deps: bump @oclif/core from 4.0.29 to 4.0.30 (114e4cc)

0.2.2 (2024-10-25)

Bug Fixes

0.2.1 (2024-10-23)

Bug Fixes

0.2.0 (2024-10-22)

Features

0.1.24 (2024-10-21)

Bug Fixes

0.1.23 (2024-10-21)

Bug Fixes

0.1.22 (2024-10-21)

Bug Fixes

  • override stdout rows to prevent terminal clearing (7ad0fec)
  • windows + wireit test fix (e69204b)

0.1.21 (2024-10-19)

Bug Fixes

  • deps: bump @oclif/core from 4.0.28 to 4.0.29 (b040457)

0.1.20 (2024-10-17)

Bug Fixes

0.1.19 (2024-10-17)

Bug Fixes

  • drop limit on printTables to 30k (fb81cf6)
  • handle very tall tables (b81be9e)
  • handle very wide tables (0627af9)
  • limit printTables to 50k total records (b698088)
  • return after rendering chunked table (e8bfaad)
  • throw error if duplicate columns (3a43b86)

0.1.18 (2024-10-12)

Bug Fixes

  • deps: bump @oclif/core from 4.0.17 to 4.0.28 (33b0887)

0.1.17 (2024-10-08)

Bug Fixes

  • use Stream wrapper class (ba0e913)

0.1.16 (2024-10-08)

Bug Fixes

0.1.15 (2024-10-08)

Bug Fixes

  • only print last valid frame (b763bf7)

0.1.14 (2024-10-06)

Bug Fixes

  • deps: bump @types/react from 18.3.10 to 18.3.11 (b463bdc)

0.1.13 (2024-10-04)

Bug Fixes

  • better fix for center aligned wrapped text (ae049a8)
  • center wrapped text (53d51bc)
  • handle wrapping of multiline strings (742dc27)
  • remove newlines when truncating text (f42e550)

0.1.12 (2024-10-03)

Bug Fixes

  • move @types/react to deps (72028f0)

0.1.11 (2024-10-03)

Bug Fixes

0.1.10 (2024-09-28)

Bug Fixes

  • deps: bump @types/react from 18.3.3 to 18.3.10 (769bc2a)

0.1.9 (2024-09-25)

Bug Fixes

0.1.8 (2024-09-25)

Bug Fixes

  • deps: bump micromatch from 4.0.7 to 4.0.8 (d7ffdde)

0.1.7 (2024-09-24)

Bug Fixes

  • calculate width of wrapped ansi (796359e)

0.1.6 (2024-09-24)

Bug Fixes

0.1.5 (2024-09-24)

Bug Fixes

0.1.4 (2024-09-24)

Bug Fixes

0.1.3 (2024-09-24)

Bug Fixes

  • deps: bump path-to-regexp from 6.2.2 to 6.3.0 (394483b)

0.1.2 (2024-09-23)

Bug Fixes

0.1.1 (2024-09-23)

Bug Fixes

  • rename makeTable to printTable (4d7a229)

0.1.0 (2024-09-23)

Bug Fixes

  • border presets (b69a75a)
  • dont render title if not provided (b8985f6)
  • dont truncate header (900ecaf)
  • handle zero width characters (d57a948)
  • handle zero width characters (62548ad)
  • truncation and padding (ee688e7)

Features