Public
Script
Readme

chalk

chalk is a very popular module for colorizing terminal output. In Val Town, it doesn't colorize the output of vals because it detects correctly that we don't support colorized logs yet. We've filed an issue internally to support colorized logs!

1
2
3
4
export let chalkExample = (async () => {
const { default: chalk } = await import("npm:chalk");
return chalk.red("hello world (this text is not red)");
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023