consola.table()
Author: RihanArfanCreated Oct 18, 2024Updated Nov 27, 2025
Labelsenhancement
Describe the feature
A method which outputs a nicely styled table based on an array or object, similar to console.table().
Ideally it could be configurable for:
- what columns to show (like
console.table()on objects) - friendly column titles
- hide index column - something which
console.table()cannot do
Example output from console.table() in Node.js:
┌─────────┬────────────────┬───────────────┐
│ (index) │ 1 │ 2 │
├─────────┼────────────────┼───────────────┤
│ 0 │ 'some name' │ null │
│ 1 │ 'another name' │ null │
└─────────┴────────────────┴───────────────┘Additional information
- Would you be willing to help implement this feature?
Source: unjs/consola