Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consola.table() #317

Open
1 task done
RihanArfan opened this issue Oct 18, 2024 · 0 comments
Open
1 task done

consola.table() #317

RihanArfan opened this issue Oct 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@RihanArfan
Copy link

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?
@RihanArfan RihanArfan added the enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant