@nightgrey/ansi
    Preparing search index...

    Interface Styled

    An interface for style-able objects.

    Style

    interface Styled {
        attributes: Attributes;
        format(string: string): string;
        toString(): string;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    attributes: Attributes

    SGR style attributes

    Methods

    • Renders given string with style attributes

      Parameters

      • string: string

      Returns string

    • Renders SGR escape sequence with style attributes

      Returns string