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

Support output colors #882

Open
davestewart opened this issue Jul 8, 2023 · 0 comments
Open

Support output colors #882

davestewart opened this issue Jul 8, 2023 · 0 comments

Comments

@davestewart
Copy link

davestewart commented Jul 8, 2023

Issue description or question

Quokka output does not seem to support color formatting, whereas WebStorm and Terminal do.

Colours are really helpful for inspecting larger objects / arrays / config / etc.

Is this issue related to Quokka not outputting the expected results of your code?

Yes

Sample code

const { inspect } = require('util')

function log (value, colors = false) {
  console.log(inspect(value, { colors }))
}

const values = [ 1, 'foo', true ]

log (values)
log (values, true)

Quokka.js Console Output

image

WebStorm Terminal Output

image

Code editor version

WebStorm 2023.1

OS name and version

OSX Monterey 12.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants