kyrie
    Preparing search index...

    Function log_from_value

    • Converts a JavaScript value to plain text without color formatting Convenience function that parses the value and outputs as plain text

      Parameters

      • value: unknown

        The value to convert to plain text

      • Optionaloptions: Options

        Optional configuration for formatting

      Returns string

      Plain text string without any color formatting

      const data = { name: "Alice", age: 30 };
      const text = log_from_value(data);
      console.log(text); // Outputs plain text: {name: "Alice", age: 30}
      const arr = [1, 2, 3, "hello", true];
      const text = log_from_value(arr);
      fs.writeFileSync('output.txt', text); // Save to file