@adviser/cement - v0.0.0
    Preparing search index...

    Class ConsoleWriterStreamDefaultWriter

    WritableStreamDefaultWriter that writes to console with automatic JSON parsing.

    Decodes Uint8Array chunks to strings, attempts JSON parsing to extract log levels, and routes output to appropriate console methods (log, warn, error).

    Implements

    • WritableStreamDefaultWriter<Uint8Array>
    Index

    Constructors

    Properties

    desiredSize: number | null = null

    The desiredSize read-only property of the to fill the stream's internal queue.

    MDN Reference

    closed: Promise<never>

    The closed read-only property of the the stream errors or the writer's lock is released.

    MDN Reference

    ready: Promise<never>

    The ready read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.

    MDN Reference

    Methods

    • The abort() method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.

      MDN Reference

      Parameters

      • Optional_reason: unknown

      Returns Promise<void>

    • The write() method of the operation.

      MDN Reference

      Parameters

      • Optionalchunk: Uint8Array<ArrayBufferLike>

      Returns Promise<void>