Skip to content

Support output colors #882

Description

@davestewart

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions