Hierarchy

Constructors

Properties

aborted: boolean = false
ansi: boolean
cursorShown: boolean = true
interface: Interface = ...
lineBuffer: string = null
logger: Logger
muted: boolean = false
storedWrite: { (buffer: string | Uint8Array, cb?: ((err?: Error) => void)): boolean; (str: string | Uint8Array, encoding?: BufferEncoding, cb?: ((err?: Error) => void)): boolean } = process.stdout.write

Type declaration

    • (buffer: string | Uint8Array, cb?: ((err?: Error) => void)): boolean
    • Sends data on the socket. The second parameter specifies the encoding in the case of a string. It defaults to UTF8 encoding.

      Returns true if the entire data was flushed successfully to the kernel buffer. Returns false if all or part of the data was queued in user memory.'drain' will be emitted when the buffer is again free.

      The optional callback parameter will be executed when the data is finally written out, which may not be immediately.

      See Writable stream write() method for more information.

      Since

      v0.1.90

      Parameters

      • buffer: string | Uint8Array
      • Optional cb: ((err?: Error) => void)
          • (err?: Error): void
          • Parameters

            • Optional err: Error

            Returns void

      Returns boolean

    • (str: string | Uint8Array, encoding?: BufferEncoding, cb?: ((err?: Error) => void)): boolean
    • Parameters

      • str: string | Uint8Array
      • Optional encoding: BufferEncoding
      • Optional cb: ((err?: Error) => void)
          • (err?: Error): void
          • Parameters

            • Optional err: Error

            Returns void

      Returns boolean

streamErrBuffer: string = null
streamLevel: number = null
streamOutBuffer: string = null
streamPad: number = null
streamPrefix: "| " = "| "
streaming: boolean = false
terminalAnimation: TerminalAnimation = null
theme: Theme

Methods

  • Returns void

  • Parameters

    • final: boolean = true

    Returns void

  • Returns { err: string; out: string }

    • err: string
    • out: string
  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    Returns ((chunk: string, isError?: boolean) => void)

      • (chunk: string, isError?: boolean): void
      • Parameters

        • chunk: string
        • Optional isError: boolean

        Returns void

  • Returns void

  • Returns void