JSPrismarine
    Preparing search index...
    • Parses a string with color codes.

      Parameters

      • input: string

        String to parse.

      • Optionalprefix: string = '§'

        The prefix to use for color codes.

      • OptionalclearAtEnd: boolean = true

        Whether to clear the color at the end of the string.

      Returns string

      The parsed string.

      const res = Parser('§cHello §eworld§r!');
      console.log(res); // 'Hello world!'