Console logs a JavaScript value with ANSI colors Convenience function that parses the value, paints it with ANSI codes, and outputs to console
The value to log to console
Optional
Optional configuration for highlighting
const data = { name: "Alice", age: 30 };log(data); // Outputs colorized object to console Copy
const data = { name: "Alice", age: 30 };log(data); // Outputs colorized object to console
const arr = [1, 2, 3, "hello", true];log(arr, { palette: palettes.bold.dark }); // Outputs with bold dark palette Copy
const arr = [1, 2, 3, "hello", true];log(arr, { palette: palettes.bold.dark }); // Outputs with bold dark palette
Console logs a JavaScript value with ANSI colors Convenience function that parses the value, paints it with ANSI codes, and outputs to console