Loxer - v3.0.0
    Preparing search index...

    Class ANSIFormat

    Index
    CODE: {
        Reset: string;
        Bright: string;
        Dim: string;
        Underscore: string;
        Blink: string;
        Reverse: string;
        Hidden: string;
        RGBTextColorPrefix: string;
        RGBBackgroundColorPrefix: string;
    } = ...

    ANSI codes to manipulate strings

    Type Declaration

    • Reset: string

      this is used to reset everything to the terminals default

    • Bright: string
    • Dim: string
    • Underscore: string
    • Blink: string
    • Reverse: string
    • Hidden: string
    • RGBTextColorPrefix: string
    • RGBBackgroundColorPrefix: string
    • returns a string to color the following text

      Parameters

      • r: number
      • g: number
      • b: number

      Returns string

    • returns a string to color the following text's background

      Parameters

      • r: number
      • g: number
      • b: number

      Returns string

    • returns a string with the highlighted text

      Parameters

      • text: string
      • Optionalcolor: string

      Returns string

    • returns a string to color the following text's background red

      Parameters

      • text: string
      • backgroundColor: string = '#f00'
      • textColor: string = '#fff'

      Returns string

    • returns a string to color the following text red

      Parameters

      • text: string
      • color: string = '#f00'

      Returns string

    • returns a string to color the following text yellow

      Parameters

      • text: string
      • color: string = '#ffa50f'

      Returns string

    • returns a string to color the following text green

      Parameters

      • text: string

      Returns string

    • returns a string to color the following text dark grey

      Parameters

      • text: string

      Returns string

    • returns a string to color the following text light green

      Parameters

      • text: string

      Returns string

    • receives text color and alpha and returns the colored string

      Parameters

      • text: string
      • color: string
      • alpha: number = 1

      Returns string

    • Parameters

      • lox: OutputLox

        to get the colored text of

      • options: LoxColorOptions = {}

        colors and module-title opacity for the returned text

      Returns {
          message: string;
          moduleText: string;
          timeConsumption: string;
          timestamp: string;
          time: string;
      }

      the lox's message, module text, box time consumption, full timestamp and time of day, each individually ANSI-colored

    • used to color items of type number and bigInt

      Parameters

      • text: string

      Returns string

    • used to color items of type string and symbol

      Parameters

      • text: string

      Returns string

    • used to color items of type boolean

      Parameters

      • text: string

      Returns string

    • used to color multiple parts of items especially of type undefined and null

      Parameters

      • text: string

      Returns string

    • used to color items of type function

      Parameters

      • text: string

      Returns string

    • used to color items instance of Date

      Parameters

      • text: string

      Returns string

    • used to color indent indicator lines of items

      Parameters

      • text: string

      Returns string