Skip to content

feat(console2): add console.table for formatted output #91

@PaulRBerg

Description

@PaulRBerg

In JavaScript, console.table is a very useful utility that pretty prints the input data.

Example:

console.table(["apples", "oranges", "bananas"]);

You would get something like this in the console:

console.table output

Many times I find myself adding empty spaces to my Solidity console.log statements just so that I can see the outputs aligned on the vertical axis.

It would be nice to have a helper function that creates a table with ASCII characters (e.g. -) and auto-indents the outputs for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions