ConsoleConstructorOptions
[<Interface>]
type ConsoleConstructorOptions =
abstract member colorMode: ColorMode option with get, set
abstract member groupIndentation: float option with get, set
abstract member ignoreErrors: bool option with get, set
abstract member inspectOptions: InspectOptions option with get, set
abstract member stderr: WritableStream option with get, set
abstract member stdout: WritableStream with get, set
static member Create (stdout: WritableStream, ?stderr: WritableStream, ?ignoreErrors: bool, ?colorMode: ColorMode, ?inspectOptions: InspectOptions, ?groupIndentation: float) : ConsoleConstructorOptions| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
Declared inside
ColorMode |
Properties
abstract member colorMode: ColorMode option with get, set
abstract member colorMode: ColorMode option with get, setSet color support for this Console instance. Setting to true enables coloring while inspecting values. Setting to false disables coloring while inspecting values. Setting to 'auto' makes color support depend on the value of the isTTY property and the value returned by getColorDepth() on the respective stream. This option can not be used, if inspectOptions.colors is set as well.
abstract member ignoreErrors: bool option with get, set
abstract member ignoreErrors: bool option with get, setIgnore errors when writing to the underlying streams.
abstract member inspectOptions: InspectOptions option with get, set
abstract member inspectOptions: InspectOptions option with get, setSpecifies options that are passed along to util.inspect().
Methods
static member Create (stdout: WritableStream, ?stderr: WritableStream, ?ignoreErrors: bool, ?colorMode: ColorMode, ?inspectOptions: InspectOptions, ?groupIndentation: float) : ConsoleConstructorOptions