ansi-to-pre
    Preparing search index...

    Class Block

    A representation of a run of text in a given style

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get ansi(): string

      a representation of the block as an ANSI styled string

      Returns string

    • get style(): Style | undefined

      the Style used by this block

      Returns Style | undefined

    • get text(): string

      the raw text that will be written

      Returns string

    Methods

    • return the block as a styled <span> tag

      Returns string