kyrie
    Preparing search index...

    Function log

    • Console logs a JavaScript value with ANSI colors Convenience function that parses the value, paints it with ANSI codes, and outputs to console

      Parameters

      • value: unknown

        The value to log to console

      • Optionaloptions: Options

        Optional configuration for highlighting

      Returns void

      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