Skip to main content

Built and signed on GitHub Actions

Print styled text in the console using CSS styles

This package works with Deno, BrowsersIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.2.0)

CSS console

Print styled text in the console using CSS styles (using %c flag).

import * as c from "@dldc/css-console";

c.red`Hello world`.log(); // Print "Hello world" in red

c.base`This message is ${c.red`Very`} important`.log();
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@dldc/css-console

Import symbol

import * as css_console from "@dldc/css-console";

---- OR ----

Import directly with a jsr specifier

import * as css_console from "jsr:@dldc/css-console";

Add Package

bunx jsr add @dldc/css-console

Import symbol

import * as css_console from "@dldc/css-console";