Support for console.table like output
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- devtools
Research direction
Begin with the package's debug function and compare its current formatting behavior with the console.table example and proposed %t formatter. Done means agreeing on the formatter and API behavior needed to support table-like output for arrays of objects.
Written by the indexing model from the issue text.
Description
The format of the output when using console.table in javascript is great. It would be awesome to have the debug function support this format of output for arrays of objects.
For example, something like this, perhaps with a %t formatter?
┌─────────┬──────────────────────────┬───────────┬──────────┬──────────┬───────────┬───────────┬───────┬─────────┬───────┬────────┬───────┬──────┐
│ (index) │ createdAt │ creatorId │ x │ y │ width │ height │ angle │ mediaId │ after │ before │ first │ last │
├─────────┼──────────────────────────┼───────────┼──────────┼──────────┼───────────┼───────────┼───────┼─────────┼───────┼────────┼───────┼──────┤
│ 0 │ 2022-12-23T14:56:17.587Z │ null │ 0.855008 │ 0.3881 │ 0.247896 │ 0.371528 │ null │ 20 │ 1 │ 13 │ 1 │ 13 │
│ 1 │ 2022-12-23T14:56:18.489Z │ null │ 0.306923 │ 0.410196 │ 0.356692 │ 0.535038 │ null │ 19 │ 2 │ 12 │ 2 │ 12 │
│ 2 │ 2022-12-23T14:56:18.497Z │ null │ 0.36553 │ 0.323443 │ 0.322601 │ 0.215067 │ null │ 18 │ 3 │ 11 │ 3 │ 11 │
│ 3 │ 2022-12-23T14:56:21.602Z │ null │ 0.513784 │ 0.388415 │ 0.172348 │ 0.25726 │ null │ 22 │ 4 │ 10 │ 4 │ 10 │
│ 4 │ 2022-12-23T14:56:21.803Z │ null │ 0.574811 │ 0.303346 │ 0.322601 │ 0.214857 │ null │ 21 │ 5 │ 9 │ 5 │ 9 │
│ 5 │ 2022-12-23T14:56:23.526Z │ null │ 0.138994 │ 0.523832 │ 0.206019 │ 0.309028 │ null │ 22 │ 6 │ 8 │ 6 │ 8 │
│ 6 │ 2022-12-23T14:56:24.538Z │ null │ 0.425821 │ 0.243687 │ 0.322601 │ 0.215067 │ null │ 24 │ 7 │ 7 │ 7 │ 7 │
│ 7 │ 2022-12-23T14:56:25.367Z │ null │ 0.178346 │ 0.544034 │ 0.082702 │ 0.124053 │ null │ 25 │ 8 │ 6 │ 8 │ 6 │
│ 8 │ 2022-12-23T14:56:25.727Z │ null │ 0.611719 │ 0.417708 │ 0.139062 │ 0.185417 │ null │ 27 │ 9 │ 5 │ 9 │ 5 │
│ 9 │ 2022-12-23T14:56:28.013Z │ null │ 0.479497 │ 0.440228 │ 0.166667 │ 0.125 │ null │ 28 │ 10 │ 4 │ 10 │ 4 │
│ 10 │ 2022-12-23T14:56:29.136Z │ null │ 0.936887 │ 0.273284 │ 0.064951 │ 0.0866013 │ null │ 29 │ 11 │ 3 │ 11 │ 3 │
│ 11 │ 2022-12-23T14:56:32.198Z │ null │ 0.691942 │ 0.328227 │ 0.0450368 │ 0.060049 │ null │ 30 │ 12 │ 2 │ 12 │ 2 │
│ 12 │ 2022-12-23T14:56:32.799Z │ null │ 0.216912 │ 0.35335 │ 0.064951 │ 0.0866013 │ null │ 30 │ 13 │ 1 │ 13 │ 1 │
└─────────┴──────────────────────────┴───────────┴──────────┴──────────┴───────────┴───────────┴───────┴─────────┴───────┴────────┴───────┴──────┘
- Dominant language
- JavaScript
- Stars
- 11.5k
- Forks
- 992
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from debug-js/debug
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Debug as JSON Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
Similar issues
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug p1 tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100