Skip to content

feat: support console.log with colors #609

Description

@ahaoboy

Will it support colored console.log output? Using different colors for different types will make it easier to distinguish

https://github.com/ahaoboy/deno-ext/tree/main/deno-console

If someone wants to use a styled console, they can use the following code to override the original implementation

import { Console } from '@deno-ext/console'
const encoder = new TextEncoder();
const print = s => tjs.stdout.write(encoder.encode(s));
globalThis.console = new Console(print)

console.log(1)

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions