Skip to content

Smarter printer and formatter for console #22

@noise64

Description

@noise64

The current console log usually prints [Object object] for most common objects.

Compare this with node / chrome:

> console.log({"lol": "lol", x: () => { console.log("hello");}})
{ lol: 'lol', x: [Function: x] }

Or firefox (and similarly componetize-js also has nice output)
image.png
And similarly componentize-js

One can workaround this by using JSON.stringify, but that does not handle recursion nicely, and also does not support e.g. Functions and Symbols.

Given any current JS ecosystem provides smarter console formats, users will expect that here too, and should not rely on creating custom workarounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    builtinsThe issues requires changing the JS builtin implementations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions